WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-08-2010, 01: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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieve Object names Geoffrey Vizard 11 12-11-2009 05:26 AM
Applying texture or colour to an on-the-fly object tomo_the_third Vizard 1 06-22-2009 12:12 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 01:14 PM
rotate to object jargon Vizard 1 08-08-2005 01:20 PM
Move texture from one object to another Johannes Vizard 2 02-09-2005 04:55 PM


All times are GMT -7. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC