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
When a proxy node session layer has an "over" prim referencing an external USD layer, when users group that prim using ctrl+g, the prim becomes a "def" and the reference is flattened in the session layer.
Steps to reproduce
Have a USD file saved somewhere on disk with a default prim (mesh for instance).
Run the following code in ScriptEditor:
import mayaUsd
usd_filepath = <path/to/the/usd/file> # replace with an actual value
proxy_node = cmds.createNode("mayaUsdProxyShape", name="TestShape")
proxy_node = cmds.ls(proxy_node, long=True)[0]
stage = mayaUsd.ufe.getStage(proxy_node)
over_prim = stage.OverridePrim("/newPrim")
over_prim.GetReferences().AddReference(usd_filepath)
Open Usd Layer Editor, right-click the target layer and "Print to Script Editor"
Notice that the prim is an "over" that references the external USD file
Expand Outliner and select the "newPrim" prim
Ctrl+g (for grouping the new prim)
Notice that the prim is a "def" and the referenced USD file is not flattened in the target layer.
Expected behavior
Keep the prim being grouped intact.
Specs (if applicable):
Linux Rocky 9
Compiler & version [e.g. gcc 11.2.1]
Maya 2025.3
MayaUsd 0.30.0
USD 0.23.11
The text was updated successfully, but these errors were encountered:
santosg87
changed the title
Group an "over" prim with reference cause the reference to be flattened and the prim to become a "def"
[EMSUSD-1949] Group an "over" prim with reference cause the reference to be flattened and the prim to become a "def"
Dec 13, 2024
Describe the bug
When a proxy node session layer has an "over" prim referencing an external USD layer, when users group that prim using ctrl+g, the prim becomes a "def" and the reference is flattened in the session layer.
Steps to reproduce
Expected behavior
Keep the prim being grouped intact.
Specs (if applicable):
The text was updated successfully, but these errors were encountered: