Im trying to add a curve such as ease in and ease out:
rollout test_button "TEST"
local myKey = myObject.pos.controller.X_Position.controller.keys
-- Rollout controls
button curveobject "Curve Object" width:130 height:20 align:#left
button animateobject "Animate Object" width:130 height:20 align:#left
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?