You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While testing the USD pipeline, I encountered an unexpected problem. If an asset, in addition to switching the variant between the USD representation and the rig, has other variants, for example, for texture path switching, then in this case, when switching additional variants, the rig becomes invisible, due to the fact that Maya creates new "rigParent#|rig" groups when switching other variants to other values (different from the value at which the first switch to rig occurred).
Steps to reproduce
import mayaUsd
from pxr import Sdf, Usd
shapeNode = cmds.ls(cmds.createNode('mayaUsdProxyShape', skipSelect = True, name = 'sceneShape'), long = True)[0]
stage = mayaUsd.ufe.getStage(shapeNode)
# create prim and add reference
prim = stage.DefinePrim('/world/prop_1')
prim.GetReferences().AddReference('assets/props/testProp_colorVariant/usd/pub/testProp_colorVariant.usd')
# switch to rig variant
geo_variant_sets = prim.GetVariantSets().GetVariantSet('geo')
geo_variant_sets.SetVariantSelection('rig')
# no problem
# switch to USD (cache variant)
geo_variant_sets.SetVariantSelection('cache')
# switch to green color variant
color_variant_sets = prim.GetVariantSets().GetVariantSet('color')
color_variant_sets.SetVariantSelection('Green')
# switch to rig variant
geo_variant_sets.SetVariantSelection('rig')
# problem, we don't see the rig
# switch to red color (default) variant
color_variant_sets.SetVariantSelection('Red')
# no problem, we see the rig again
Expected behavior
Switching other variant sets should not be related to switching an asset into a rig representation.
santosg87
changed the title
Maya creates unnecessary groups "rigParent|rig" for MayaReference when switching other variant sets.
[EMSUSD-1026] Maya creates unnecessary groups "rigParent|rig" for MayaReference when switching other variant sets.
Feb 16, 2024
I checked the variant switching in Maya 2025.3 USD version 0.30.0 and found the same bug. Please fix it.
santosd
changed the title
[EMSUSD-1026] Maya creates unnecessary groups "rigParent|rig" for MayaReference when switching other variant sets.
[EMSUSD-1025] Maya creates unnecessary groups "rigParent|rig" for MayaReference when switching other variant sets.
Oct 25, 2024
Describe the bug
While testing the USD pipeline, I encountered an unexpected problem. If an asset, in addition to switching the variant between the USD representation and the rig, has other variants, for example, for texture path switching, then in this case, when switching additional variants, the rig becomes invisible, due to the fact that Maya creates new "rigParent#|rig" groups when switching other variants to other values (different from the value at which the first switch to rig occurred).
Steps to reproduce
Expected behavior
Switching other variant sets should not be related to switching an asset into a rig representation.
Attachments
Test asset
testProp_colorVariant.zip
Specs (if applicable):
The text was updated successfully, but these errors were encountered: