The true object owning the subAnim can be different than what was originally specified when creating the subAnim, and MAXScript automatically hides certain types of subAnims, automatically promoting the subAnims within them. Returns the name of the track subAnim as shown in TrackView.parent : Node, read-only The third subAnim in a node is typically the transform track. Whenever you use the index operator on a 3ds Max object, it returns a SubAnim instance.įOR EXAMPLE: $box01 -> SubAnim:Transform MAXScript defines a SubAnim class, instances of which provide a general representation for sub-animatables. The names you can use are those seen in the track view or retrieved with the functions getSubAnimName() or getSubAnimNames(). So, whereas in releases prior 3ds Max 4, getting at the position subAnim in a node require you to remember index 3 for the transform subanim and 1 for its position subanim, in other words $foo - position within transform within node It can be any expression that yields a string or name value. In place of an index, you can also use a subanim name. You cannot set subAnims with the index operator, this is a read-only access. $ - third subAnim in a position list controllerįfd_mod.value - position of i'th FFD control point You can apply the index operator,, to any MAXWrapper object (nodes, modifiers, controllers, materials, etc.) to access a numbered subAnim.įOR EXAMPLE: for i in 1 to $foo.numSubs do print $foo - iterate them Returns the subAnim with the specified index or name. Available in in 3ds Max 2022 and later getSubAnim Otherwise the non-localized names are returned. When the localizedNames keyword parameter is true (the default), the names as they appear in the UI is returned. Returns an array of names in subAnim index order. Available in in 3ds Max 2022 and later getSubAnimNames Otherwise the non-localized name is returned. When the localizedName keyword parameter is true (the default), the name as it appears in the UI is returned. If false or not specified, a Name Value is returned. If the optional asString keyword is supplied and set to true, the name is returned as a string. Returns the name of the indexed subAnimin the supplied MAXWrapper. This property operates on any MAXWrapper subclass. This is the number of immediate children subAnims, and may include as yet invisible tracks in the track view, such as visibility tracks on a node or yet-to-be animated vertices in an FFD. Yields the number of accessible sub-animatables, or tracks, in an object. This simplifies such tasks as iterating over all the animatable properties in an object and accessing sub-controllers that don't have unique names, such as within list controllers. Indexed Access to Animatable Properties in 3ds Max ObjectsĪs an alternative to using named property accesses, you can access in an object any animatable property that is visible as a track in Track View by indexing the 3ds Max object value as though it were an array.
0 Comments
Leave a Reply. |