macros:example:setallshapesdirection
This is an old revision of the document!
Table of Contents
Example
Set All Shapes Direction
by: | Sebastian Beutel, June 2021 |
---|---|
published: | here |
description: | Set the direction of all running shapes |
remarks: |
This is a combination of Select all running shapes and Shapes - Shape Direction, to set all running shapes' direction at once. The file consists of a number of macros. The first one selects all running shapes. The other macros recall the first one, and then set the direction to the various possible values,
functions
affected properties
control structures
The file with all macros for all possible directions is available here as allshapesdirection.xml.
Code
- allshapesdirection_short.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros> <macro id="Wiki.Macros.SelectAllShapes" name="Select All Shapes"> <sequence> <step>Editor.Shapes.ConnectShapesList()</step> <step condition="!Editor.Shapes.ProgrammerShapes.Empty">Editor.Shapes.SelectAllShapes()</step> <step condition="!Editor.Shapes.EditShapesEmpty">ActionScript.SetProperty.Boolean("Editor.Shapes.EditingPlaybackShapes", true)</step> </sequence> </macro> <macro id="Wiki.Macros.AllShapes.Direction.LeftToRight" name="All Shapes Direction LeftToRight"> <sequence> <step>UserMacros.RecallMacroById("Wiki.Macros.SelectAllShapes")</step> <step>Editor.Shapes.SetCurrentShapesDirection("LeftToRight")</step> </sequence> </macro> <macro id="Wiki.Macros.AllShapes.Direction.TopDown" name="All Shapes Direction TopDown"> <sequence> <step>UserMacros.RecallMacroById("Wiki.Macros.SelectAllShapes")</step> <step>Editor.Shapes.SetCurrentShapesDirection("TopDown")</step> </sequence> </macro> </avolites.macros>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
tbd
How to use it
macros/example/setallshapesdirection.1623325988.txt.gz · Last modified: 2021/06/10 11:53 by icke_siegen
Discussion
Hi! I
m tryinbg to get this macro work but I
m missing something. I already download the .xml file. I''m working on Avolites Titan 17. In my show library I already see the different macros. However, none of the macros works. When I select the macro nothing happens. Could you please help me.Thanks,
Juan Bernal