Autodesk / Autodesk/maya-usd

Trying to load payloads on Maya USD proxy nodes not working after have been previously disabled

Open
#3,362 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

### Discussed in https://github.com/Autodesk/maya-usd/discussions/3351

Originally posted by **stephanehoarau** September 27, 2023
Hello !
We hit an issue with the Load Payloads option (either in UI or by script) on USD proxy nodes.
I created a simple `demo_example.zip` file composed of two files to expose you the problem and the steps to reproduce the issue.
- example.usd (ascii USD file)
- geo_payload.usd (binary USD file)
The `example.usd` will contain a default prim called "main" that is composed of a payload file (geo_payload.usd).

**Steps to reproduce the issue:**
```
    - Load Maya (2023 + USD 0.22.0 plugin)
    - Create a stage with the menu "Edit > Universal Scene Description (USD) > Stage with New Layer" -> the stage node "stage1" is created within an "anonymousLayer1" USD layer.
    - Launch the "USD Layer Editor" by RMB on the "stage1" node in the Outliner.
    - In the "USD Layer Editor", select the option "Load SubLayers..." with the RMB on the "anonymousLayer1*" layer.
    - In the new UI "Load SubLayers in the anonymousLayer1", choose the "Layer Path" option and select in your Browser the provided file "example.usd" .
    - This will show you a wonderfull sphere on your scene.
    - Then select the "stageStage1" shape related to "stage1".
    - in the "Attribute Editor", in the "Extra Attributes" section, find the checkbox called "Load Payloads":
        - If you untick the checkbox, you should see the sphere disappear in the viewport. Actually this is the expected behavior.
        - If you tick again the checkbox, you should see the sphere appear in the viewport. This is the expected behavior.

    - Now save this scene in a maya file (with Save Scene Options: Save all edits (including USD) to the Maya scene file (I saved it under "[stage_example.ma]")
    - Clean the scene with File > New.
    - Load the scene just saved.
    - Select the "stageStage1" shape in the scene.
    - in the "Attribute Editor", in the "Extra Attributes" section, find the checkbox called "Load Payloads":
        - If you untick the checkbox, you should see the sphere disappear in the viewport. This is the expected behavior.
        - Now if you tick again the checkbox, unfortunately the sphere won't appear again. THIS IS NOT EXPECTED. Moreover, notice also that the sublayer called "example.usd" under "anonymousLayer1" has been removed too (we do believe this is actually the main issue though).
```

[demo_example.zip](https://github.com/Autodesk/maya-usd/files/12742884/demo_example.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the workflow with example.usd and geo_payload.usd from demo_example.zip, using the stage1 proxy node and the Load Payloads checkbox before and after saving and reopening stage_example.ma. Inspect why the example.usd sublayer disappears after reload, then verify that re-enabling Load Payloads restores the sphere.

Written by the indexing model from the issue text.

Assessment

Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.