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

usdMaya: warn if falling back to pseudoRoot due to failed primPath #159

Merged

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Feb 3, 2017

Description of Change(s)

Currently, when the maya plugin is passed an invalid primPath (either one that has bad syntax, like "bad;primPath", or one that doesn't exist in the scene, like "/prim/doesnt/exist"), the plugin silently just converts this to a pseudoRoot ("/"). I feel that it should, at minimum, print a warning - so I've made a commit / pull request that does that.

It think it would be still more preferable to have it "abort" and return false, similar to the behavior if the stage has an invalid defaultPrim (the handling of which is a few lines below). However, I was hesitant to change existing behavior without sanction. If returning false would be preferable, though, it's an easy addition.

Included Commit(s)

Fixes Issue(s)

  • None reported, but the silent conversion of an invalid input could be considered an issue...

@jtran56
Copy link

jtran56 commented Jun 2, 2017

Filed as internal issue #147128.

@pixar-oss pixar-oss merged commit efaec0a into PixarAnimationStudios:dev Jan 8, 2018
pixar-oss added a commit that referenced this pull request Jan 8, 2018
usdMaya: warn if falling back to pseudoRoot due to failed primPath
@pmolodo pmolodo deleted the pseudo_root_warning branch March 12, 2019 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants