Notifications
Clear all
[Closed] Pressing custom atttribute button with a script?
Oct 05, 2012 8:32 am
Hi there y’all. I have created a rig that has a main control object with custom attributes. These custom attributes have spinners/slider and a button along with various controllers and functions that these controls drive. The button runs a function that does some “baking” to parts of the rig. It’s all working fine. I have lots of these rigs in a scene. Up to about 100. The baking needs to be done after the manual animation of the rig.
So I was hoping there was a way that I could iterate through all the control objects and “press” all the bake buttons with a script. Or am I just dreaming?
Cheers,
Cg.
2 Replies
Oct 05, 2012 8:32 am
try modify this, and implemented to your code
for o in ‘all the control objects’ do ( o.‘modifier’.‘custAtt’.‘button’.pressed() );