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
In a scene with a mayaUsdProxyShape, deactivating a prim from the session layer (prim.SetActive(False)) normally prunes it from the viewport. After the Maya scene has been through a File → Save As, this stops working: the prim is correctly reported as inactive on the stage, but Viewport 2.0 keeps drawing a "ghost" of its geometry.
Steps to reproduce
Open baseline.ma .
File → Save As… to a new file (e.g. baseline_overwrite.ma).
Run switch.py, which switches /root/CHA_Sphere_1 between the USD proxy and a referenced Maya rig:
switch_to_rig() references the rig and authors active = false on the prim via the session layer.
switch_to_usd() unloads the rig and authors active = true.
After switch_to_rig(), the USD proxy geometry is still drawn in Viewport 2.0, on top of the rig.
Expected behavior
After SetActive(False), the prim's geometry should stop being drawn in Viewport 2.0, the same as it does before the scene has been saved.
Describe the bug
In a scene with a mayaUsdProxyShape, deactivating a prim from the session layer (prim.SetActive(False)) normally prunes it from the viewport. After the Maya scene has been through a File → Save As, this stops working: the prim is correctly reported as inactive on the stage, but Viewport 2.0 keeps drawing a "ghost" of its geometry.
Steps to reproduce
Open baseline.ma .
File → Save As… to a new file (e.g. baseline_overwrite.ma).
Run switch.py, which switches /root/CHA_Sphere_1 between the USD proxy and a referenced Maya rig:
switch_to_rig() references the rig and authors active = false on the prim via the session layer.
switch_to_usd() unloads the rig and authors active = true.
After switch_to_rig(), the USD proxy geometry is still drawn in Viewport 2.0, on top of the rig.
Expected behavior
After SetActive(False), the prim's geometry should stop being drawn in Viewport 2.0, the same as it does before the scene has been saved.
Attachments
mayausd_active_repro.zip
maya_usd_visibility_issue.mp4
Specs: