Autodesk / Autodesk/maya-usd

Deactivated prim is still drawn in Maya's Viewport 2.0

Open
#4,658 0 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**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](https://github.com/user-attachments/files/29358631/mayausd_active_repro.zip)

https://github.com/user-attachments/assets/63184ed8-0619-4176-967c-4f212a01cbb3

**Specs:**
- Linux (Rocky-9)
- Maya 2026.3
- Maya USD 0.36.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.