Hi everyone, I have trouble in doing euler-filtering in a pythonic if the
object channels is stemming from an animation layer (where the channels are
in 'greenish-blue' instead of the red.
I tried the following:
sel = '|man_rig|hands|right_arm|right_hand_ctrl'
channels = ["translate", "rotate"]
axes = ["X", "Y", "Z"]
for channel in channels:
for axis in axes:
attribute = "{0}.{1}{2}".format(sel, channel, axis)
in_conn = cmds.listConnections(
attribute,
source=True,
plugs=True
)
cmds.filterCurve(in_conn, filter="euler")
The above code works if my object is not in animation layer(s).
When I enable 'echo all commands' in the Script Editor, it echoes out a
long line, something as follows:
.._myAnimLayer_inputB .._myAnimLayer_inputA
How do I derive these inputA, inputB? Or if there is a better way to euler
filter for objects whose channels are in animation layer?
--
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/a60c9b0d-73ec-4a4b-890a-42a4a4da3236%40googlegroups.com.