View Single Post
  #4  
Old 02-09-2006, 10:32 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Python objects don't have names associated with them when they are created. You will have to explicitly name them yourself.

The command myScene.get(viz.CHILDREN) will return all Vizard nodes that are children of the object. When you add myScene it creates a single Vizard node, which contains miscellaneous internal nodes. When you call myScene.getchild('myCylinder') it will search for an internal node with the name myCylinder and convert it into a Vizard node. It seems like you need a command that will return the names of all the internal nodes underneath an object. Vizard doesn't have this feature, but it could be implemented through a plugin.

What exactly are you trying to accomplish by retrieving the names of the object? Maybe there is a better way to go about it.
Reply With Quote