-
Notifications
You must be signed in to change notification settings - Fork 202
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-1251] MayaUsdProxy node not refreshing properly #2465
Comments
I was able to reproduce this on our side as well. it seems to only happen when the user saves all edits to the Maya scene, which is likely causing the "stuck" state of the layers. I logged this internally so we can investigate further and discuss next steps. the internal ticket ID is MAYA-125057 |
@neilrubie I was not able to reproduce this issue anymore on the latest build of mayausd and Maya. I am closing this as "cannot reproduce" for the time being, feel free to re-open if you can still reproduce this or if you have any more information. cheers! |
I am still seeing the same issue with the latest build of mayausd (0.23) and Maya 2023.3. I am unable to save a maya file out and "refresh" the usd node in the same execution of code. Can you verify and reopen if possible? |
This issue still occurs for me using Maya 2022, MayaUSD 0.26.0 on Windows 10. However (and I'm not sure if you're still looking for a solution @neilrubie ) but I found that by adding these lines...
This has allowed me to re-path a stage successfully if - like in the above example - doing so is the last thing to happen in the code block. If you have more 'stuff' going on afterwards (and in my case I do, as this happens half way through a Shotgrid Publish), it still doesn't work unfortunately. |
Thanks @DanGroverUK, I did end up finding solution that seems to work for me. It's pretty hacky, and don't ask me why it works, but it seems to get around the bug. Directly after you do your file export, perform another dummy export before setting the filepath on your proxy node:
Give that a try. |
I'm not entirely sure I want to know what you had to go through to find this out @neilrubie but I am very grateful! |
@DanGroverUK Haha a lot of trial and error and banging my head against the wall! Did it work for you as well? @santosg87 Can you reopen this ticket? I don't see any option to do so myself. |
Yes it did - thank you very much! The Layer Manager's UI always seems to update correctly, and of course the proxy shape's |
Describe the bug
I am attempting to load a usd stage inside a MayaUsdProxy node using python code, however the stage doesn't appear to load under certain circumstances. Specifically when the anonymous session/root layer has unsaved edits, and you perform a save operation directly prior to setting the proxy filePath attribute.
Steps to reproduce
After doing this, the proxy filepath attribute appears to be populated, but the usd file itself did not get loaded. The proxy's root layer is still pointing to an anonymous layer:
Expected behavior
I expect that any existing root layer (anonymous or not) gets cleared out and replaced by the layer specified by the filepath.
Attachments
cube.zip
Specs (if applicable):
Additional context
Things seem to work fine when I omit the save operation in the code. And they work fine when I execute the code separately and sequentially. And it works fine if there are no edits on the anonymous session or root layer. It just so happens that I need it to work under this perfect storm of a scenario..
The text was updated successfully, but these errors were encountered: