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!