View Single Post
  #2  
Old 09-22-2015, 05:32 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Are you trying to modify the example code included in the tutorial? The original code adds a window model that has a glass sub-part:

Code:
#Add a model and grab one of its chidren to put the textures on.
model = viz.add('art/window.ive')
window = model.getChild( 'glass' )
If you open the 'window' model in Inspector you'll see the scene graph and model sub-parts. In your code 'window' was swapped with 'wall'. The 'wall' model does not have a sub-part called 'glass'.
Reply With Quote