in Designer by
I have a Boolean attribute show secondary controls on each limb. I want one button on my picker to toggle the same attribute on each of these controls.

1 Answer

0 votes
by
edited by

Ah, I think the best way to do it is to:

  1. Do it in Maya rig, ask one master attribute to control all these attributes, and use one attribute button to control the master attribute.
  2. Use the command button instead. Since one attribute button is unable to trace and sync with multiple Maya attributes, you just code in the command button, where you get picker namespace by
    cmds.MGPickerView(q=True, namespace=True)
    , grab all the nodes, and set that attribute in a batch way. You can also trigger the attribute button value change using the cmds mgpicker api.

 

Categories

...