View Single Post
  #3  
Old 10-01-2015, 02:28 PM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Smile

Quote:
Originally Posted by Jeff View Post
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'.
Yeah I find out that and I now figure out the problem

Thx
Reply With Quote