Hi there fellas, I have made a simple script to control my rig(foot), but I cant figure how to make set key button work.
def=attributes footControl
(
parameters heelRoll rollout:footRO
(
HeelRotation type:#float ui:heelRotSL
)
parameters toeRoll rollout:footRO
(
ToeRotation type:#float ui:toeRotSL
)
parameters tiptoeRoll rollout:footRO
(
TiptoeRotation type:#float ui:tiptoeRotSL
)
parameters footBank rollout:footRO
(
FootBanking type:#float ui:bankingSL
)
rollout footRO "Foot Control"
(
group "Roll"
(
slider heelRotSL "Heel Rotation"
slider toeRotSL "Toe Rotation"
slider tiptoeRotSL "Tiptoe Rotation"
)
group "Bank"
(
slider bankingSL "Foot Banking" range:[-50,50,0]
)
group "Key and Reset"
(
button keyAll "Key All" width:65 across:2
button resetAll "Reset All" width:65
on keyAll pressed do with undo on
(
addNewKey (HeelRotation) currentTime
addNewKey (ToeRotation) currentTime
addNewKey (TiptoeRotation) currentTime
addNewKey (FootBanking) currentTime
)
on resetAll pressed do with undo "Reset_All" on
(
HeelRotation=0
ToeRotation=0
TiptoeRotation=0
FootBanking=0
)
)
)
)
custAttributes.add $.modifiers[1] def
MKlejnowski · 2012-08-14
Graph · 2012-08-10