Skip to content

Deactivated prim is still drawn in Maya's Viewport 2.0 #4658

Description

@cblanchette97

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:

  • Linux (Rocky-9)
  • Maya 2026.3
  • Maya USD 0.36.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions