User Tools

Site Tools


macros:example:setchasespeed

This is an old revision of the document!


Example

Set chase speed

by: Kim Wida, February 2018
published: http://forum.avolites.com/viewtopic.php?f=20&t=5577
description: set some chases' speed
remarks:

functions

affected properties

Code

0.6sec.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Change_06_Speed">
    <name>0.6 sec</name>
    <sequence>
      <step pause="0.01">ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"chaseHandleUN=17589")</step>
      <step pause="0.01">ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackSpeed", 100.0)</step>
      <!-- add some more chase playbacks here -->
      <step pause="0.01">ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", handle:"chaseHandleUN=19159")</step>
      <step pause="0.01">ActionScript.SetProperty("Playbacks.Editor.Times.PlaybackSpeed", 100.0)</step>
 
      <step pause="0.01">Handles.SetSourceHandleFromHandle("chaseHandleUN=1049")</step>
      <step pause="0.01">ActionScript.SetProperty("Handles.PendingLegend", "Speed 200%")</step>
      <step pause="0.01">Handles.SetLegend()</step>
      <step pause="0.01">Handles.ClearSelection()</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

  • ActionScript.SetProperty(“Playbacks.Editor.SelectedPlayback”, handle:“chaseHandleUN=17589”) selects distinct chase playbacks identified by their user number
  • ActionScript.SetProperty(“Playbacks.Editor.Times.PlaybackSpeed”, 100.0) sets a certain speed for the selected chase. Seems that the actual speed is calculated on a basis of 3,600 BPM, or 1 == 1/60 second
  • Handles.SetSourceHandleFromHandle(“chaseHandleUN=1049”) selects another playback to set its legend
  • ActionScript.SetProperty(“Handles.PendingLegend”, “Speed 200%”) sets this handle's legend as indicator for the current setting

How to use it

  1. maybe create some macros with various speed settings
  2. make sure your chases have the correct user numbers
  3. fire the macros to set specific speeds
You could leave a comment if you were logged in.
macros/example/setchasespeed.1536416893.txt.gz · Last modified: 2018/09/08 14:28 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki