-
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
[MAYA-121636] As artists, we would like to be able to parent prims underneath 'scopes' #2085
Comments
Hi @paulbaa, we are working on this issue, and have a question for you. What do you expect the behavior to be if we call parent -absolute (the default) on a USD child hierarchy that has a scope as its root? The scope transform cannot be changed. Two possibilities are:
Option (2) is the most correct, but also the most complex to code and test, and has potential scalability problems for large child hierarchies. Therefore, we're wondering if it's a real use case, and the simpler option (1) would be a fine practical solution. Wouldn't you simply author a child hierarchy with a transform at its root if you wanted its world space position to be maintained by parent -absolute, rather than have a scope at the root of the child hierarchy? Thanks for any info! |
Apologies for the late reply with holidays, Siggraph and thanks for looking into this. I'd agree with 1) - in most/all cases our assets need to have a transform as it's root, to be positioned, parented etc. I could imagine if a scope is the root, you'd just get a warning saying 'root of asset is a scope and can't be transformed. Parenting relative' I also think this has the benefit of staying explicit, i.e. you don't get a possibly arbitrary transform down the child's hierarchy. |
Hi @paulbaa, thanks a lot for the answer. This matches my expectation. We will discuss this internally to make sure we all agree, and we'll get back to you. |
Heya @paulbaa - doing a quick roundup from an internal discussion, one thing to pull out is a warning message - if a user does the parenting Because this might create geo moving in space for a user who has absolute parenting set up we should display a warning, except that the warning only really should go up when the local space transform is non-identity. Does this sound like the main scenario where you'd want from a UI (or TD) perspective to know about it? There was some wondering about what happens if the tree of objects being reparented is all non transformable as well, but i think that's enough of an edge case it's not something to worry about initially while prototyping. |
Thanks Anthony - picking this up again, your example makes sense to me. |
this should be fixed with the latest builds of MayaUSD. Note that the work here required changes in the Maya code, so this will only be usable on the latest version of Maya. marking it as closed for now. if this is still an issue feel free to re-open or log a new issue. :) |
This appears to be working for us in 2023.3 |
Currently, we are not able to parent existing prims underneath Usd-scopes in Maya. This is desired behaviour, so we can author our existing scenography with scopes at any point. Creating new prims underneath a scope works.
Open Maya 2022.3
Create a new empty USD stage
Create a scope
Create a (sibling) xform
parent the xform underneath the scope, either by middle-mouse drag, 'P' or edit >parent
ERROR: 'Object ... does not support parenting and therefore cannot be a parent.'
As per the conversation with @kxl-adsk
The text was updated successfully, but these errors were encountered: