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

Add ability to create, delete, or reparent translated custom plugin prims live from within maya #27

Open
alekamca opened this issue Oct 12, 2017 · 1 comment

Comments

@alekamca
Copy link
Contributor

We have created some custom MPxNodes which read/write directly to USD via get/setInternalValue, and have defined Translators (via the translator plugin system) to automatically create them.

We would like to be able to define commands for creating these UsdPrim/nodes and adding them to an existing UsdStage/ProxyShape. Similarly, we would like to define specialized commands for reparenting or deleting existing nodes (within the same stage).

Briefly looking through the code, it seems that for the case of creating, we could do this by calling methods from ProxyShapePostLoadProcess to ensure the proper transform chains are created (and marked as required) and the necessary bookkeeping is performed. Presumably we could utilize methods used for variant switching to modify or remove existing nodes.

I am intending to begin working on this functionality very shortly, so I wanted to submit the sug here. I'm also interested in any feedback on whether or not this is a good idea/ something that could be contributed back.

@alekamca
Copy link
Contributor Author

As an update, I have played around with this, and it will be awhile before I get a truly undo-able version of add/remove prim. The proxyShapeResync command is probably sufficient for my current usage. Usd does not support reparenting very well, so this will probably not be something I will be looking at soon either. Should I just close this issue?

seando-adsk added a commit to autodesk-forks/AL_USDMaya that referenced this issue Nov 19, 2018
…_in_develop_0.29.4

Merging develop (0.29.4) branch into dev-adsk
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

No branches or pull requests

1 participant