Transform to zero button

Transform to zero button

ebonit.e
Observer Observer
483 Views
0 Replies
Message 1 of 1

Transform to zero button

ebonit.e
Observer
Observer

Hi, I would like to add to a controller on my rig button for transform to zero. I found how to do it to an object itself but can't find a way how to do it to list of objects specified by me.

I was trying something like this:

 

Reset_Custom_attribute = attributes custom_Attributes
(
rollout ResetRollout "Reset IK/FK"
(
button ui_reset "reset" width:160 height:30
on ui_reset pressed do
(
try ( $'Box001'.transform = macros.run "Animation Tools" "TransformToZero") catch ()
)
)
)

CustAttributes.add $.modifiers[1] Reset_Custom_attribute

 

Thank you

0 Likes
484 Views
0 Replies
Replies (0)