User Tools

Site Tools


macros:example:setplaybacklockstate

Differences

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

Link to this comparison view

Next revision
Previous revision
macros:example:setplaybacklockstate [2018/12/23 16:54] – created icke_siegenmacros:example:setplaybacklockstate [2019/04/27 15:08] (current) – [Set a playback's lock state] sideshowbond
Line 1: Line 1:
 Example Example
  
-====== Set a playback'lock state ======+====== Playback - Set lock state ======
  
 ^ by: | Alex del Bondio/Gregory Haynes | ^ by: | Alex del Bondio/Gregory Haynes |
Line 99: Line 99:
   * ''ActionScript.SetProperty.Enum("Handles.SourceHandle.LockState", "FullyLocked")'' sets a property to the enum representation of "FullyLocked"   * ''ActionScript.SetProperty.Enum("Handles.SourceHandle.LockState", "FullyLocked")'' sets a property to the enum representation of "FullyLocked"
   * ''Handles.SetLockState(Handles.SourceHandle.LockState)''uses this enum as parameter for SetLockState()   * ''Handles.SetLockState(Handles.SourceHandle.LockState)''uses this enum as parameter for SetLockState()
 +
 +>Setting the property on its own is not enough as it is only used for display purposes and does not update the handle properties when it is changed. Since the SetLockState function requires an Enum type and not a string you need to either create an Enum value using Math.ToEnum or set Handles.SourceHandle.LockState to the correct value and pass that in.
  
 ===== How to use it ===== ===== How to use it =====
macros/example/setplaybacklockstate.1545584047.txt.gz · Last modified: 2018/12/23 16:54 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki