maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

[EMSUSD-2154] mayaUsd_ProxyTargetsSessionLayerOnOpen doesn't seem to work

Open radon199 opened this issue 1 year ago • 4 comments

Describe the bug The mayaUsd_ProxyTargetsSessionLayerOnOpen option var does not appear to work for us with mayaUsdProxyShapes anymore. We should expect that the session layer is always set as the edit target, regardless of what is set in Maya when the file is saved.

Steps to reproduce Steps to reproduce the behaviour:

  1. Set the mayaUsd_ProxyTargetsSessionLayerOnOpen option var to 1.
  2. Create a mayaUsdProxyShape pointing to a file.
  3. Save a Maya file with the proxy shape included.
  4. Close the Maya file and reopen the one saved in step 4.
  5. Look at the Layer Editor and you will see that the session layer is not targeted despite the option var.

Expected behavior The session layer should be targeted regardless of the edit target saved into the file.

Specs (if applicable):

  • OS & version : Windows 10
  • Compiler & version : precompiled
  • Maya version : 2022.5, 2024
  • Maya USD : 0.30.0

radon199 avatar Feb 12 '25 18:02 radon199

After some further testing we are seeing :

  • Shared proxy : Edit Target is set to whatever the edit target was when the file was saved.

Image

  • Unshated proxy : Edit target is always set to the unshared layer

Image

I think that if the set session layer option var is set, it should affect things regardless of what is saved in the file or the shared state of the proxy.

radon199 avatar Feb 12 '25 19:02 radon199

thank you for the report! we are investigating this currently. logged internally as EMSUSD-2154

santosg87 avatar Feb 12 '25 19:02 santosg87

A PR was merged to address this issue. In all probability, it should be part of a future release, but as always no firm promise can be made. The PR was this one: https://github.com/Autodesk/maya-usd/pull/4120

pierrebai-adsk avatar Feb 19 '25 21:02 pierrebai-adsk

Thanks, will look for this in a future release.

radon199 avatar Feb 21 '25 00:02 radon199