View Single Post
  #1  
Old 12-07-2011, 09:35 AM
EnvisMJ EnvisMJ is offline
Member
 
Join Date: May 2009
Location: Purdue University, West Lafayette, Indiana
Posts: 44
Apply a texture to a submesh

Is there a way to apply a texture to a single mesh within a model? I'm using this:

Code:
model = viz.add('Models/DynamicObjects/Vial_Default.IVE')
labelMat = viz.addTexture('Textures/VialLabels/Ampicillin & Sulbactam 1.5gm vial - WHITE.png')

vial = model.getChild("Vial-GEODE")
label = model.getChild("Label-GEODE")
cap = model.getChild("Cap-GEODE")

label.texture(labelMat)
But it isn't doing anything.

My goal is to import a single model of a vial, and within Vizard, apply a different label as needed.

Ex.
Reply With Quote