Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EMSUSD-1949] Group an "over" prim with reference cause the reference to be flattened and the prim to become a "def" #4045

Open
marceloserchelihh opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@marceloserchelihh
Copy link

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

  1. Have a USD file saved somewhere on disk with a default prim (mesh for instance).
  2. 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)
  1. Open Usd Layer Editor, right-click the target layer and "Print to Script Editor"
  2. Notice that the prim is an "over" that references the external USD file
  3. Expand Outliner and select the "newPrim" prim
  4. Ctrl+g (for grouping the new prim)
  5. 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
@marceloserchelihh marceloserchelihh added the bug Something isn't working label Dec 11, 2024
@wallworm
Copy link
Collaborator

Thanks for reporting.

@santosg87 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
@santosg87
Copy link
Collaborator

we are currently investigating this behavior. Adding the Internal ticket ID so we can track it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants