I want to show/hide groups of ctrls depending on the mode.
I can do this with arrays easily.
inside my custom attribute definition rollout block,
I have code like:
--define an array of max objects fk_ctrls=#($fk_upper_arm,$fk_lowerArm,$fk_hand) ... --hide the array fn hide_fk =( fk_ctrls.hidden=true )
but this is very object specific.
I want to build a generic fk/ik setup tool
that uses variables (attributes i guess) to hold these objects
so i can simply pick the objects involved and run the script to set the system up.
--assign max objects to a set of vars fk_upper_arm= $ctrl_fk_r_arm_a fk_lower_arm= $ctrl_fk_r_arm_b fk_hand= $ctrl_fk_r_arm_c ... --and in the rollout block ... --define the array using vars instead of objects fk_ctrls=#(fk_upper_arm,fk_lowerArm,fk_hand) ... --hide the array fn hide_fk =( fk_ctrls.hidden=true )
What is the best way to store the variable assignments with the custom attribute?