ScriptSpot

Forum topic · General Scripting

Animation problem

By babisouk · 2012-08-07

Description

I have been trying to animate a slider.
What I want it to do is to get a new value at the current frame,
and add a key the frame just before at another value when a button is pressed.

this is my script:

at time slidertime-1 animate on slider.value = 0
at time slidertime animate on slider.value = 100

The problem is it just adds the last sentence when I press the button.

Thanks in advance.

Comments (1)

MKlejnowski · 2012-08-11

did it actually set a key on the current time slider or did it just set the value to 100? Also what kind of slider are we talking about? Is this a slider with in a custom attribute that has a parameter linked to it or are we talking about a slider from a floating rollout? Correct me if im wrong but the only animatable slider i can think of is one nested with in a custom attribute and one that is linked to an paramater that has the animatable property set to true. Also add some more code so we can see whats going on.