When using mirror pose or flip pose it happens to do it in a way that is not suitable for the current rig I am using to animate. On the other hand if I use the synoptic it works correctly Flip pose and also mirror pose, any suggestion of how it could be solved?
The code that I am using for Mirror pose Flip Pose I found it in this forum and it works perfect in other rigs, but in this character that I have to do the animation does not work correctly.
“Mirror pose”
import pymel.core as pm
import maya.cmds as cmds
from mgear.core.anim_utils import mirrorPose
if not INIT:
current_selection = cmds.ls(selection=True)
controls = [pm.PyNode(x) for x in current_selection]
for ctl in controls:
mirrorPose(flip=False, nodes=[ctl])
“Flip pose”
import pymel.core as pm
import maya.cmds as cmds
from mgear.core.anim_utils import mirrorPose
if not INIT:
current_selection = cmds.ls(selection=True)
controls = [pm.PyNode(x) for x in current_selection]
for ctl in controls:
mirrorPose(flip=True, nodes=[ctl])