macros:example:halvechasespeed
This is an old revision of the document!
Table of Contents
Halve chase speed
by: | Gregory Haynes, Feb 2016 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=3744#p15848 |
description: | halves currently chase's BPM rate |
remarks: | The problem with this code is that it requires the chase to be set as the selected playback in the editor (used for the Edit Times menu). This means that the Playback View which could be showing a cue list switches to show the chase instead, to get around this I have stored the previous selected playback and restore that afterwards but this does cause the display to flicker. |
functions
affected properties
This macro works perfectly well in Titan 9.1, does misbehave in 10.0 (always sets speed to 1 BPM), and throws an error in 10.1 (variable not registered).
Code
- halvechasespeed.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd"> <macro name="Chase Speed Half" id="Avolites.Macros.ChaseSpeedHalf"> <description>Halves the speed of the currently connected chase.</description> <sequence> <step>ActionScript.SetProperty("Handles.SourceHandle", Playbacks.Editor.SelectedPlayback)</step> <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Chases.ConnectedHandle)</step> <step>ActionScript.SetProperty.Float("Playbacks.Editor.Times.ChaseSpeed", Playbacks.Editor.Times.ChaseSpeed / 2)</step> <step condition="Math.IsLessThan(Playbacks.Editor.Times.ChaseSpeed, 1.0)">ActionScript.SetProperty.Float("Playbacks.Editor.Times.ChaseSpeed", 0.0)</step> <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Handles.SourceHandle)</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
You could leave a comment if you were logged in.
macros/example/halvechasespeed.1511183888.txt.gz · Last modified: 2017/11/20 13:18 by icke_siegen