Skip to content

Constraint maya transform to usdPrim #1652

Answered by santosd
kreppene asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @kreppene,

We have a regression test that covers some of these things, which may give some insight as to how it could be done:
https://github.com/Autodesk/maya-usd/blob/dev/test/lib/testMayaUsdProxyAccessor.py#L107

Some extras:
Way to expose a translate operation to allow connection through the node editor:

import mayaUsd.lib.proxyAccessor as pa

selUfeObject = pa.getUfeSelection()
pa.createXformOps(selUfeObject)
pa.getOrCreateAccessPlug(ufeObject=selUfeObject,usdAttrName='xformOp:translate')

Parenting a Maya object to a USD Prim (select DAG child object\s first and then select the USD prim):

import mayaUsd.lib.proxyAccessor as pa

pa.parent()

Make note that we haven't fleshed out…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kreppene
Comment options

@neilrubie
Comment options

@kxl-adsk
Comment options

@neilrubie
Comment options

@kxl-adsk
Comment options

Answer selected by kreppene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants