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.