I think you're doing too much work to achieve what you really want. You've hard-coded your joint names into your Mel, which leaves your script very local to your current application. Check out the code below which will toggle visibility on and off of descendant joints for any rig you are working on. // I've heavily…
Hello Everyone I have this two pieces of codes for turn on and off an arm in my rig: //// select -r Jack:jack_ac_lf_elbowIK Jack:jack_ac_lf_index0 Jack:jack_ac_lf_index2 Jack:jack_ac_lf_index1 Jack:jack_ac_lf_index3 Jack:jack_ac_lf_middle1 Jack:jack_ac_lf_middle0 Jack:jack_ac_lf_middle2 Jack:jack_ac_lf_middle3…