Message 1 of 1
Transform to zero button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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