Interfaces > Core Interfaces > LockedTracksMan |
The LockedTracksMan Core Interface available in 3ds Max 2010 and higher exposes properties and methods related to animation track locking.
Get/Set the state of the Override All Locks option.
When set to true, the locked state of locked tracks will be temporarily overridden and their values can be changed.
When set to false, the values of locked tracks cannot be changed.
<void>LockedTracksMan.SetLocks <bool>lock <&maxObject array>anims <&maxObject array>clients <&index array>subNums <bool>includeChildren anims is In and Out parameter clients is In and Out parameter subNums is In and Out parameter
Sets the locks of the specified tracks to the Boolean value supplied as first argument.
anims is the array of subAnims
clients is the array of parent controllers of the subAnims.
subNums is the array of indices of the subAnims within their clients' children hierarchies.
When includeChildren is passed as true, children tracks will also be locked/unlocked.
<void>LockedTracksMan. ToggleLocks <&maxObject array>anims <&maxObject array>clients <&index array>subNums <bool>includeChildren anims is In and Out parameter clients is In and Out parameter subNums is In and Out parameter
Toggles the locked state of the given subAnims.
anims is an array of the SubAnims to toggle.
clients is an array of the parents of the SubAnims.
subNums is an array of the indices of the SubAnims within the children hierarchy of their parents.
If includeChildren is passed as true, children of the track will also be toggled.
Returns the locked state of the given track.
client is the parent controller of the subAnim.
subNum is the index of the subAnim within the client's children hierarchy
If checkOverride is passed as true, the state of the Lock Overrides will also be respected, returning locked tracks as unlocked if an Override is active.
<void>UnlockChildren <&maxObject array>anims <&maxObject array>clients <&index array>subNums anims is In and Out parameter clients is In and Out parameter subNums is In and Out parameter
Unlocks the children of the specified controllers.
Returns true if the given subAnim can be locked, false if it cannot be locked.
client is the parent controller of the subAnim to check.
subNum is the index of the subAnim within the client's children hierarchy
<void>LockedTracksMan.FindLockedAnims <bool>locked <bool>checkOverride <maxObject>refTarget <&maxObject array>anims <&maxObject array>clients <&index array>subNums anims is In and Out parameter clients is In and Out parameter subNums is In and Out parameter
Returns the tracks with the given locked state.
locked is the state to search for - either true or false.
checkOverride defined whether to take into account any Overrides or not.
refTarget is the root maxObject to scan for locked/unlocked tracks.
anims is a by-reference array to populated with the SubAnims
clients is a by-reference array to be populated with the parents of the SubAnims
subNums is a by-reference array to be populated with the indices of the SubAnims within the children hierarchy of their parents.
Returns true if the given subAnim track is unlocked via an Override, false otherwise. It will return true if an Override is active even if the subAnim is not locked.
Pushes an Override on the Uber-Unlock Override stack.
Pops an Override from the Uber-Unlock Override stack.
Returns true if the Uber-Unlock Overrides stack contains any Overrides, false if there are no Overrides on the stack.
Sets the Exposed UI state of the anims supplied by the second argument to the Boolean value provided by the first argument.
Available in 3ds Max 2011 and higher.
Returns the Exposed UI state of the controller supplied as argument.