Functions for dealing with controller access.
Gets the controllers (and sub-controllers) of the passed anim, to a specified depth.
An array of all the controllers and sub-controllers of the passed anim (object or sub-anim). The array will not contain the passed anim.
Note: The returned array may contain duplicate controllers, if those controllers are instanced. Use TrimDuplicates on the array if this is a problem.
<anim>
[depth:-1]
[ctrlArray:#()]
Companion to GetControllers, to get the owning anims of the controllers.
ie, for:
subAnims = GetAnimatedSubAnims obj
ctrls = GetControllers obj
then this is guaranteed:
subAnims[n].controller == ctrls[n]
An array of all the sub-anims of the passed anim (object or sub-anim). The array will not contain the passed anim.
<anim>
[depth:-1]
[saArray:#()]