User Tools

Site Tools


macros:example:setallshapesdirection

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:setallshapesdirection [2021/06/10 11:53] – created icke_siegenmacros:example:setallshapesdirection [2026/02/02 11:44] (current) – [Code] icke_siegen
Line 18: Line 18:
   * [[:macros:function:UserMacros.RecallMacroById]]   * [[:macros:function:UserMacros.RecallMacroById]]
   * [[:macros:function:Editor.Shapes.SetCurrentShapesDirection]]   * [[:macros:function:Editor.Shapes.SetCurrentShapesDirection]]
 +  * [[:macros:function:Editor.Shapes.EditShapesEmpty]] (from v17 on)
  
 ==== affected properties ==== ==== affected properties ====
   * [[:macros:property:Editor.Shapes.ProgrammerShapes.Empty]]   * [[:macros:property:Editor.Shapes.ProgrammerShapes.Empty]]
-  * [[:macros:property:Editor.Shapes.EditShapesEmpty]]+  * [[:macros:property:Editor.Shapes.EditShapesEmpty]] (only before Titan v17)
   * [[:macros:property:Editor.Shapes.EditingPlaybackShapes]]   * [[:macros:property:Editor.Shapes.EditingPlaybackShapes]]
  
Line 27: Line 28:
   * [[macros:control_structures|step condition]]   * [[macros:control_structures|step condition]]
  
-The file with all macros for all possible directions is available {{ :macros:example:allshapesdirection.xml |here as allshapesdirection.xml}}.+==== specials ==== 
 +  * [[macros:syntax:referingmacros|refering macros]] 
 + 
 +The file with all macros for all possible directions is available {{ macros:example:allshapesdirection.xml |here as allshapesdirection.xml}}. 
 + 
 +Please note that, as there were changes in Titan v17 which affect these macros, there is another file for Titan versions up to v16: {{ macros:example:allshapesdirection_v16.xml}}.
    
 ===== Code ===== ===== Code =====
Line 33: Line 39:
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
 <avolites.macros> <avolites.macros>
 +
 +<!-- please note there are changes in SelectAllShapes from v17 on -->
  
   <macro id="Wiki.Macros.SelectAllShapes" name="Select All Shapes">   <macro id="Wiki.Macros.SelectAllShapes" name="Select All Shapes">
Line 38: Line 46:
       <step>Editor.Shapes.ConnectShapesList()</step>       <step>Editor.Shapes.ConnectShapesList()</step>
       <step condition="!Editor.Shapes.ProgrammerShapes.Empty">Editor.Shapes.SelectAllShapes()</step>       <step condition="!Editor.Shapes.ProgrammerShapes.Empty">Editor.Shapes.SelectAllShapes()</step>
-      <step condition="!Editor.Shapes.EditShapesEmpty">ActionScript.SetProperty.Boolean("Editor.Shapes.EditingPlaybackShapes", true)</step>+      <step condition="!Editor.Shapes.EditShapesEmpty()">ActionScript.SetProperty.Boolean("Editor.Shapes.EditingPlaybackShapes", true)</step>
     </sequence>     </sequence>
   </macro>   </macro>
Line 64: Line 72:
 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+The file contains of a number of macros. 
 +  * the first macro ''Select All Shapes'' is described in [[macros:example:selectallrunningshapes|]]. It is used in all subsequent macros. 
 +  * the other macros recall the first macro using ''UserMacros.RecallMacroById'', and then set the direction as explained in [[macros:example:shapedirection|]]
  
 ===== How to use it ===== ===== How to use it =====
  
   - [[:macros:deploying|make this macro available]]   - [[:macros:deploying|make this macro available]]
- +  - program and fire some playbacks with shapes 
-tbd +  - fire one of the macros "All Shapes Direction ..." to change the direction of all running shapes at once
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
macros/example/setallshapesdirection.1623325988.txt.gz · Last modified: 2021/06/10 11:53 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki