Table of Contents

Example

Dummy speed as condition

by: Kim Wida, February 2018
published: http://forum.avolites.com/viewtopic.php?f=20&t=5584
description: example of how to use a dummy playback speed as step condition

functions

affected properties

control structures

Code

<step pause="0.01">ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"chaseHandleUN=1049")</step>
<step pause="0.01">Handles.SetSourceHandleFromHandle("chaseHandleUN=1049")</step>
<step> { if ( Math.IsEqual(Playbacks.Editor.Times.PlaybackSpeed, 60.0) ) 
        { Profiles.AssignHandleProfile(handle:"chaseHandleUN=19162",493461); }
      else
        { Profiles.AssignHandleProfile(handle:"chaseHandleUN=19162",493448); }
      } </step>
<step> { if(Math.IsEqual(Playbacks.Editor.Times.PlaybackSpeed, 60.0) )
         { ActionScript.SetProperty("Handles.PendingLegend", "Instant"); }
       else
         { ActionScript.SetProperty("Handles.PendingLegend", "Latch");  }
      } </step>
<step> { if(Math.IsEqual(Playbacks.Editor.Times.PlaybackSpeed, 60.0) )
        { ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackSpeed", 30.0); }
      else
        { ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackSpeed", 60.0); }
       } </step>
<step pause="0.01">Handles.SetLegend()</step>
<step pause="0.01">Handles.ClearSelection()</step>

Explanation

This is not operational within itself but a good example for some special syntax.