Replies: 4 comments 5 replies
-
Hi @mwalk176 I was speaking with @pierrebai-adsk who did a lot of the work for edit routing and he let me know that it seems that the Maya manipulators by pass edit routing so only the attributes editing in the AE, channel box, UFE attributes or through setAttr command are routed. Though it seems that the manipulators are creating UFE commands so it should be possible to route through those commands. I hope that helps. |
Beta Was this translation helpful? Give feedback.
-
You are right that not all commands are currently routable. For your particular problem, the commands used to change the transforms on prims have not been made routable yet. While the code changes required to make one command routable is not extensive, there are a lot of commands for the manipulators that would all need to be modified simultaneously. |
Beta Was this translation helpful? Give feedback.
-
Yes, you would have to mimick how it was done for the visibility command. For the Maya manipulators, the way it works is that Maya ask the UFE run-time manager to create a Ufe::Transform3d object for a given prim. These Ufe::Transform3d have functions to create UFE command corresponding to the 3D manipulation. In the MayaUsd plugin, we have several implementations of the Ufe::Transform3d interface to support different USD "transform-stack", that is several ways to describe transformation: the Maya one, the USD common one, fallbacks, etc. A while ago I wrote a presentation about the way the Transform3d is implemented in the plugin, which you can find here An example of one of the implementation of the Transform3d interface can be found UsdTransform3dMayaXformStack.h. You would need to find all classes that derive from Ufe::Transform3d. So you would need to implement edit routing for all of these commands for all these implementations, which might be a few dozen commands. |
Beta Was this translation helpful? Give feedback.
-
@mwalk176 when you get this implemented for manipulators let us know so we can take a look and hopefully merge this into the main branch. That would be awesome! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, I have a composed stage of multiple usd files and am trying to get Edit Routing working so each time an artist changes a prim, the edits end up in the proper sublayer. I have visibility and attributes working, but it seems like when you translate, rotate, or scale the prim, those changes aren't considered attributes and do not get picked up by the EditRouter. Has that functionality been implemented yet? Or would those operations be able to be done under say, a composite routing command?
Beta Was this translation helpful? Give feedback.
All reactions