Hi, I don't script in MEL, but the double quotes in this statement might be an issue $r_upperArm = xform ("-query -worldSpace -rotation L_upperArm_FK_snap_JNT"); In C# the double quotes would mean you are trying to store text into an array. I hope this helps ( I haven't done any programming for a long time and I am rusty).