Login
Remember
Register
Questions
Tags
Ask a Question
MGTools
MGPicker
中文问答
Ask a Question
can I make an attribute button drive the same attribute on multiple controls ?
asked
Oct 26, 2022
in
Designer
by
Karen
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.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1
Answer
0
votes
answered
Oct 26, 2022
by
mgland
edited
Oct 26, 2022
by
mgland
Ah, I think the best way to do it is to:
Do it in Maya rig, ask one master attribute to control all these attributes, and use one attribute button to control the master attribute.
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.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Categories
All categories
MGTools
(16)
MG-PickerStudio
(83)
Installation
(38)
Registry
(5)
Animator
(15)
Designer
(13)
Programmer
(10)
Feedbacks
(2)
License
(15)
Others
(1)
IUTest
(1)
...