View Single Post
  #1  
Old 10-11-2011, 12:20 PM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
<node3d>.getChildren() subtleties

I am trying to poll an object loaded from an ive file for it's children. The object always returns an empty list from getChildren(). However, if I use getChild('DVD') (one of the children), it returns a viznode. So I am wondering if there is some subtlety I am missing, possibly something to do with getChild searching deeper than immediate children?

So, the code looks something like:
Code:
obj = viz.add('ObjectsTest.ive')
print obj.getChildren()
(returns [])
print obj.getChild('DVD')
(returns viz.VizNode(35))
Christian
Reply With Quote