User Tools

Site Tools


macros:example:reverseallshapes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macros:example:reverseallshapes [2020/03/01 09:29] – created icke_siegenmacros:example:reverseallshapes [2021/06/10 19:07] (current) – [Shapes - Reverse All Shapes] icke_siegen
Line 5: Line 5:
 ^ by: | Sebastian Beutel, February 2020 | ^ by: | Sebastian Beutel, February 2020 |
 ^ published: | here | ^ published: | here |
-^ description: | this macro reverse all running shapes |+^ description: | this macro reverses all running shapes |
 ^ remarks: | requested by Marco Rossoni \\ "is it possible to do a macro that invert the shape direction? thanks a lot ... , e.g. I have a symmetric circle running outwards and with that macro make that circle running inward." | ^ remarks: | requested by Marco Rossoni \\ "is it possible to do a macro that invert the shape direction? thanks a lot ... , e.g. I have a symmetric circle running outwards and with that macro make that circle running inward." |
  
 {{tag>shape reverse circle}} {{tag>shape reverse circle}}
  
 +**From Titan v15 on ClearAll() requires two parameters, see [[macros:function:programmer.editor.clearall|]].\\ Simply change the relevant line(s) to ''Programmer.Editor.ClearAll(false, false)''.**
 ==== functions ==== ==== functions ====
-  * [[:macros:function:someusedfunction]] +  * [[:macros:function:Editor.Shapes.ConnectShapesList]] 
-  * [[:macros:function:anotherusedfunction]]+  * [[:macros:function:Editor.Shapes.SelectAllShapes]] 
 +  * [[:macros:function:ActionScript.SetProperty.Boolean]] 
 +  * [[:macros:function:Editor.Shapes.Reverse]] 
 +  * [[:macros:function:Programmer.Editor.ClearAll]] 
  
 ==== affected properties ==== ==== affected properties ====
-  * [[:macros:property:someproperty]] +  * [[:macros:property:Editor.Shapes.ProgrammerShapes.Empty]] 
-  * [[:macros:property:anotherusedproperty]]+  * [[:macros:property:Editor.Shapes.EditShapesEmpty]] 
 +  * [[:macros:property:Editor.Shapes.EditingPlaybackShapes]]
  
 ==== control structures ==== ==== control structures ====
-  * anyspecials?+  * [[macros:control_structures|condition]]
    
 ===== Code ===== ===== Code =====
Line 33: Line 39:
         ActionScript.SetProperty.Boolean("Editor.Shapes.EditingPlaybackShapes", true)         ActionScript.SetProperty.Boolean("Editor.Shapes.EditingPlaybackShapes", true)
       </step>       </step>
-   <step>Editor.Shapes.Reverse()</step> +      <step>Editor.Shapes.Reverse()</step> 
-   <step>Programmer.Editor.ClearAll()</step>+      <step>Programmer.Editor.ClearAll()</step>
     </sequence>     </sequence>
   </macro>   </macro>
Line 46: Line 52:
 This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]] This explains the functional steps within the sequence. For all the other XML details please refer to [[:macros:formats_and_syntax#xml_format|Formats and syntax]]
  
-tbd+  * ''Editor.Shapes.ConnectShapesList()'' lists and highlights all running shapes 
 +  * ''Editor.Shapes.SelectAllShapes()'' selects all shapes from the programmer if there are any 
 +  * ''Editor.Shapes.EditingPlaybackShapes'' flag is set if there are any shape being edited 
 +  * ''Editor.Shapes.Reverse()'' actually reverses all shapes currently being edited 
 +  * ''Programmer.Editor.ClearAll()'' finally clears programmer and editor
  
 ===== How to use it ===== ===== How to use it =====
  
   - [[:macros:deploying|make this macro available]]   - [[:macros:deploying|make this macro available]]
- +  - e.g. fire a playback with a shape 
-tbd+  - fire this macro - the running shape will be inverted and runs in the other direction
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/reverseallshapes.1583054986.txt.gz · Last modified: 2020/03/01 09:29 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki