NodeChildrenArray Values
A NodeChildrenArray represents the direct children of a scene node as a virtual array. As such, you can iterate over the children, apply mapped functions to them and obtain certain properties such as count and bounding box info.
Also see General Node Properties.
NodeChildrenArray values are mappable.
Constructors
<node>.children
Properties
<nodechildrenarray>.center : Point3, read-only
Returns center of bounding box of children.
<nodechildrenarray>.max : Point3, read-only
Returns maximum corner of bounding box.
<nodechildrenarray>.min : Point3, read-only
Returns minimum corner of bounding box.
<nodechildrenarray>.count : Integer, read-only
Returns number of objects in set.
<nodechildrenarray>.boundingBox
: Read-only. Returns a Box3 value representing the bounding box of the node children in the virtual array. Available in in 3ds Max 2022 and later
Operators
<nodechildrenarray>[<integer>] -- retrieve nth child
Methods
append <nodechildrenarray> <node>
Makes the specified node a child of the node NodeChildrenArray was constructed from.
deleteItem <nodechildrenarray> <node>
Removes the specified node from the NodeChildrenArray.
Unlike ObjectSets, you cannot use NodeChildrenArray as the root of a pathname!
The order of sequencing is consistent in a stable scene but somewhat arbitrary - it depends on how 3ds Max stores its object hierarchy internally which is affected mostly by order of creation and deletion to and from the scene, as well as the order of parenting (linking). See How To ... Sort TrackView Alphabetically for an example of how the order of linking and unlinking can affect the scene order.