View Full Version : getChild() function - how do I know the children?

08-30-2012, 06:23 AM
I want to change the behavior of elements of some complex 3d model I have, and I understood the way to do it is with the getChild function. But how do I know which children does my model (/Node3d instance) has? And how do I know (for example) which actions they can perform?
Thanks a lot,

08-31-2012, 03:38 PM
Where did you get the model from? Usually, the modeler will assign specific names to the objects in the scene before exporting them. If you upgrade to Vizard 4.0, it comes with a tool called Inspector which allows you to view the names of all the child nodes in the model.

In Vizard 3.0, you can use the node.getNodeNames() command to get a list of all the names.

Regarding knowing which actions they can perform, I'm not sure I understand what you mean. Could you be more specific?