macros:example:changechaseroverlap
This is an old revision of the document!
Table of Contents
Example
Change a chaser's X-Fade
by: | Gregory Haynes, Ricster, Apr. 2017 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=5150 |
description: | snippets to change a chaser's x-fade |
remarks: | not a working macro but interesting discussion and insights on some properties, tpyes, and type casting |
functions
affected properties
Code
<macro id="UserMacro.SetChaseOverlap50" name="Set Chase Overlap 50%"> <description>Set fixture overlap of connected chase to 50%.</description> <sequence> <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", Chases.ConnectedHandle)</step> <step>ActionScript.SetProperty.Float("Playbacks.Editor.Times.ChaseFixtureOverlap", 0.5)</step> </sequence> </macro>
<!-- Ricster's reply: --> <step>ActionScript.SetProperty("Playbacks.Editor.Times.ChaseFixtureOverlap", Math.Cast.ToSingle(1))</step> <!-- Might also work. Or even --> <step>ActionScript.SetProperty.Float("Playbacks.Editor.Times.ChaseFixtureOverlap", 1)</step> <!-- And as of 10.1 I think you can do --> <step>ActionScript.SetProperty("Playbacks.Editor.Times.ChaseFixtureOverlap", float:1)</step>
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”, Chases.ConnectedHandle)
makes the currently connected handle active in the editorActionScript.SetProperty.Float(“Playbacks.Editor.Times.ChaseFixtureOverlap”, 0.5)
sets the property“Playbacks.Editor.Times.ChaseFixtureOverlap”
to 0.5 which is 50%
Another example was published by kimwida: http://forum.avolites.com/viewtopic.php?f=20&t=5579
How to use it
- once a chase is active and connected, fire this macro to set the chaser to 50% crossfade
You could leave a comment if you were logged in.
macros/example/changechaseroverlap.1535390094.txt.gz · Last modified: 2018/08/27 17:14 by icke_siegen