Want this to be my end result for a selected control object, such as “L_arm_ctrl.”
L_arm_ctrl_0
L_arm_ctrl_SDK
L_arm_ctrl
Mel script that groups it twice, renames first group with control name + ” _SDK” and groups it again adding “_0”. I have this script so far-
string $selectedObject[];
$selectedObject = ls -sl
;
select $selectedObject;
group -n _SDK;group -n _0;
It works ok, but it only groups the object twice and renames groups “_SDK” and “_0”. I can’t find the script to rename the groups WITH the selected object’s name, followed by the stated suffixes. Forgive me, I’m a newbee. Thanks in advance. tbwaldrop@gmail.com
I’ve been toying with this script-
string $selectedObject[];
$selectedObject = ls -sl
;
select $selectedObject;
group -n ($selectedObject + "_SDK");group -n ($selectedObject + "_0");