View Single Post
  #2  
Old 02-08-2010, 12:28 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
When applying a texture to an object, you can optionally specify the name of the sub-node you want it to be applied to. If your model contains a sub-node named palace then you can apply a texture to it using the following sample code:
Code:
# Apply texture to first unit
model.texture(tex1,node='palace')

# Apply texture to second unit
model.texture(tex2,node='palace',unit=1)
Reply With Quote