Find Child |
The
find child function serves to scan
link structure of objects.
If
-1 number is set as parameter of the function or if parameter omits, then this function returns index of the first child, which is connected to the
active object. If no child is connected, then this function returns
-1 value.
If -2 number is set as parameter of the function, then this function returns index of parent, to which active object is connected. If it is not connected to any object, then 0 value is returned, which presents connecting to scene. For invalid active object -1 value is returned.
If index of some object is set as parameter of the function, then index of following object connected to the same parent as entered object is returned. If no object follows, then -1 value is returned.
This function can be useful particularly in case of
loading object from file when structure of linked objects is not known.
Full Html Context Help of The Peter - Gemtree Software & Children Programming