hello again,
This was an issue that was address in the past but the fix for it no longer seems to be working.
this is the Original post : [Solved] Wrist rotation control won't freeze transform
but when i run the script to fix the issue iâm getting a whole new error that i canât figure out.
(I had to change some of the string to match my naming convention but the rest is the same script
import pymel.core as pm
from mgear.core import transform
from mgear import rigbits
def fix_ik_hand_orientation(side):
ikCns = pm.PyNode('arm_{}0_ik_cns'.format(side))
ikCtrl = pm.PyNode('arm_{}0_ik_ctl'.format(side))
handChildren = ikCtrl.getChildren(type='transform')
transform.matchWorldTransform(ikCtrl, ikCns)
transform.matchWorldTransform(ikCns, ikCtrl)
zeroOut = rigbits.addNPO(ikCns)[0]
zeroOut.rename('arm_{}0_ikcns_zero'.format(side))
for side in 'LR':
fix_ik_hand_orientation(side)
Error: RuntimeError: file C:\Users\Hobbz\Documents\maya\modules\scripts\mgear\pymaya\cmd.py line 266: Error occurred while calling wrapped function âmaya.cmds.createNodeâ: Invalid arguments for flag âpâ. Expected string, got Transform
Arguments: (âtransformâ,)
Keyword Arguments: {ânâ: âarm_L0_ik_cns_npoâ, âpâ: nt.Transform(âspine_C0_1_cnx|arm_L0_rootâ), âssâ: True}
Command for debugging: maya.cmds.createNode(âtransformâ, n=âarm_L0_ik_cns_npoâ, p=nt.Transform(âspine_C0_1_cnx|arm_L0_rootâ), ss=True)
Thanks agian!