I haven't had a lot of luck setting the activeHandle and then using the
alignAlong parameter (maybe that's not how it's meant to be used, I'm not
sure). I have found orientAxes and orientObject both seem to work well
though.
import maya.cmds as cmds
curctx = cmds.currentCtx()
if cmds.superCtx(curctx, ex=True):
ctx = cmds.superCtx(curctx, q=True)
# This appears to work
cmds.manipMoveContext(ctx, e=True, orientAxes=[0,20,-45], mode=6)
# So does this
cmds.manipMoveContext(ctx, e=True, orientObject='pConeShape1', mode=6)
On Tuesday, 20 March 2018 01:49:19 UTC+11, Алексей Ванжула wrote:
>
> Hi. How to orient move manipulator by two arbitrary axises?
> In manipMoveCOntext documentation I see only orientation by one axis
> (alignAlong(aa) arg) or by object (orientObject(oo) arg)
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/ad7460d9-bb19-4207-9a86-a10646177798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.