User Tools

Site Tools


macros:example:setplaybackfadeintime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:setplaybackfadeintime [2019/04/27 15:06] – [Set a playback's fade-in time] sideshowbondmacros:example:setplaybackfadeintime [2021/07/21 15:28] (current) icke_siegen
Line 9: Line 9:
  
 This is also an example how ''time:x'' is parsed into a time value. This is also an example how ''time:x'' is parsed into a time value.
 +
 +<fs large>**See [[macros:example:setplaybackfadeintimemodular|]] for a more versatile version using newer syntax.**</fs>
  
 {{tag> playback fade-in time }} {{tag> playback fade-in time }}
Line 48: Line 50:
       <step>Handles.ClearSelection()</step>       <step>Handles.ClearSelection()</step>
       <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", null)</step>       <step>ActionScript.SetProperty("Playbacks.Editor.SelectedPlayback", null)</step>
 +    </sequence>
   </macro>   </macro>
 </avolites.macros> </avolites.macros>
Line 64: Line 67:
   * ''ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:3)'' finally sets the fade-in time to the value. ''time:3'' tells the parser what to do with the number 3, i.e. parse it as time value.   * ''ActionScript.SetProperty("Playbacks.Editor.Times.CueFadeInTime", time:3)'' finally sets the fade-in time to the value. ''time:3'' tells the parser what to do with the number 3, i.e. parse it as time value.
  
 +**Note that this requires the first playback to be a single cue.** If it is e.g. a cue list or a macro then the property ''Playbacks.Editor.SelectedPlayback'' isn't set and the macro fails.
  
 ===== How to use it ===== ===== How to use it =====
macros/example/setplaybackfadeintime.1556377613.txt.gz · Last modified: 2019/04/27 15:06 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki