User Tools

Site Tools



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

Link to this comparison view

Last revision Both sides next revision
macros:example:setplaybacklockstate [2018/12/23 17:54]
icke_siegen created
macros:example:setplaybacklockstate [2018/12/23 18:05]
icke_siegen [Explanation]
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.txt ยท Last modified: 2019/04/27 17:08 by sideshowbond