Skip to content

How to create material/look variants for a model? #3197

Answered by jcoelho88
frankchen211 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @frankchen211,

As of the most recent version of the plugin (0.23.0) you can only export materials when they are attached to a mesh. In Maya 2024 using LookDevX you can author materials and bind them in a new layer so there is no export needed.

If you dont have Maya 2024 and want to run a process to to remove mesh properties other than their material binding and maybe the display color you would have to do something like this.

# Pixar
from pxr import Usd, UsdGeom, Sdf

# Choose the layer you want to remove the model data from and open it in a stage.
layer_to_edit = "/PATH/TO/LAYER"
stage = Usd.Stage.Open(layer_to_edit)
stage_layer = stage.GetRootLayer()

# Traverse the stage and remove …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by santosd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants