Im trying to add a curve such as ease in and ease out:
try(destroydialog ::test_button)catch()
rollout test_button "TEST"
(
-- Locals
local myKey = myObject.pos.controller.X_Position.controller.keys[80]
-- Rollout controls
button curveobject "Curve Object" width:130 height:20 align:#left
button animateobject "Animate Object" width:130 height:20 align:#left
-- Events
on animateobject pressed do
(
for j=0 to 50 by 10 do
(
with animate on at time j (move selection [10,0,10])
with animate on at time 80 (move selection [20,0,0])
)
)
on curveobject pressed do
(
myKey.outTangentType = #fast
myKey.inTangentType = #fast
)
createDialog test_button 160 100
This is the code i have but it does not seem to be working?
Thanks
barigazy · 2013-04-16