WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   getChild() function - how do I know the children? (https://forum.worldviz.com/showthread.php?t=4326)

royb 08-30-2012 06:23 AM

getChild() function - how do I know the children?
 
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,
Roy

farshizzo 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?


All times are GMT -7. The time now is 07:58 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC