User Tools

Site Tools



Set Shapes (and KFS) Direction

by: Gregory Haynes, January 2019
description: Set keyframe shapes direction
The function that the Effects Editor window uses to change the direction is Editor.Shapes.SetShapeDirection however the parameters for this are the ID of the shape and the direction object that should be set. The object is not just a name but an item with various parameters which I'm not sure will be possible to access or create in macros. As a key frame shape is still a shape you should be able to use the standard shape functions to make changes but may mean that the UI does not update properly. You can select key frame shapes in the Shape Menu by pressing Edit followed by Select Shape and then use the Direction options within the shape menu.


affected properties

control structures


<?xml version="1.0" encoding="utf-8"?>
  <macro id="Avolites.Macros.ProgrammerShapes.Direction.RightToLeft" name="Programmer Shapes Right to Left">
    <description>Select all programmer shapes and set the direction to Right to Left.</description>
      <step condition="!Editor.Shapes.ProgrammerShapes.Empty">Editor.Shapes.SelectAllShapes()</step>
      <step condition="!Editor.Shapes.EditShapesEmpty">Editor.Shapes.SetCurrentShapesDirection("RightToLeft")</step>
  <macro id="Avolites.Macros.ProgrammerShapes.Direction.LeftToRight" name="Programmer Shapes Left to Right">
    <description>Select all programmer shapes and set the direction to Left To Right.</description>
      <step condition="!Editor.Shapes.ProgrammerShapes.Empty">Editor.Shapes.SelectAllShapes()</step>
      <step condition="!Editor.Shapes.EditShapesEmpty">Editor.Shapes.SetCurrentShapesDirection("LeftToRight")</step>


This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

  • Editor.Shapes.ProgrammerShapesList gets all the programmer shapes including key frame shapes
  • Editor.Shapes.SelectAllShapes selects all the programmer shapes if there are any
  • Editor.Shapes.SetCurrentShapesDirection(“…”) sets the direction of the selected shapes if there are any

How to use it

This is an example for two shape directions - you may add more macros for other directions. Put the macros on a button to quickly set the direction you want.

You could leave a comment if you were logged in.
macros/example/setshapedirection.txt · Last modified: 2019/05/03 21:35 by icke_siegen