Is a child a geograft?
DraagonStorm
Posts: 748
When looping thru the children of a node, is there something I can check to see if that child is geografted to the node?
var gNumChildren = oNode.getNumNodeChildren(); for( var c = 0; c < gNumChildren; c++ ){ var gChild = oNode.getNodeChild( c ); //Check to see if this child is geografted to oNode?????}
Post edited by DraagonStorm on
Comments
This may help:
If you select a DzFigure in the Scene and then run the Node Properties sample script, it reports these undocumented functions (among others):
getNumGraftFigures()
getGraftFigure(int)
getNumCullFigures()
getCullFigure(int)
isGraftFollowing()
You can test them e.g. like this:
So it looks like MAYBE all you need to do in your example is this?:
-P
Thank You!
Worked a charm...
So I hadn't lost my Google Foo, Those were undocumented.