You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to have a set of APIs that could reliably and efficiently answer if single attribute(s) (e.g radius) or two-tiered attribute(s) (e.g transform op/order) can be allowed to edit depending on where the stronger opinion(s) come from.
We are currently achieving this by comparing the calculated “position index” between a strongest layer containing the attribute and edit target layer across all the sites. Strongest layer always has a lower index than a weak layer(s).
In this scenario, strongest Layer for “doubleSided” attribute is “Sphere.usda” where its value is set to true. Authoring a new opinion for “doubleSided” attribute in LayerA.usda should be possible.
Example 2:
Simple example that shows when an attribute edit is blocked in weaker layers. Consider following Sublayer hierarchy:
Any edits in weaker layers (anonymousLayer4, anonymousLayer3, anonymousLayer2) are blocked. Making edits in stronger layers (anonymousLayer1, anonymousLayer6) should be still allowed.
The text was updated successfully, but these errors were encountered:
Description of Issue
We would like to have a set of APIs that could reliably and efficiently answer if single attribute(s) (e.g radius) or two-tiered attribute(s) (e.g transform op/order) can be allowed to edit depending on where the stronger opinion(s) come from.
We are currently achieving this by comparing the calculated “position index” between a strongest layer containing the attribute and edit target layer across all the sites. Strongest layer always has a lower index than a weak layer(s).
https://github.com/Autodesk/maya-usd/blob/8b00e510717e9339fe174b5e07bcfd0f607becc9/lib/mayaUsd/ufe/Utils.cpp#L87
https://github.com/Autodesk/maya-usd/blob/8b00e510717e9339fe174b5e07bcfd0f607becc9/lib/mayaUsd/ufe/Utils.cpp#L378
https://github.com/Autodesk/maya-usd/blob/94a3e3e3f91835caae462c7cf89b82ac5741ffc4/lib/mayaUsd/ufe/UsdTransform3dMayaXformStack.cpp#L510
Example 1:
Simple example involving reference arc, where an attribute ( e.g “doubleSided” ) is being interrogated in "LayerA.usda"
LayerA.usda
Sphere.usda
In this scenario, strongest Layer for “doubleSided” attribute is “Sphere.usda” where its value is set to true. Authoring a new opinion for “doubleSided” attribute in LayerA.usda should be possible.
Example 2:
Simple example that shows when an attribute edit is blocked in weaker layers. Consider following Sublayer hierarchy:
With “anonymousLayer5” selected as an "edit target", the user authors a new height/radius opinion:
Any edits in weaker layers (anonymousLayer4, anonymousLayer3, anonymousLayer2) are blocked. Making edits in stronger layers (anonymousLayer1, anonymousLayer6) should be still allowed.
The text was updated successfully, but these errors were encountered: