Page 1 of 1

Script to control velocity

Posted: Fri Jul 24, 2009 10:55 pm
by stefman
Hello,

I'm wondering if there is a way to enhance the way to control velocity in AS.

That's why I would like to ask two questions.

1.

Is it possible to control the interpolation velocity parametres with a script. That means creating an eas-out/in, smooth, .... with a script.

I'am quiet sure that it's possible to create a script that finally just will act as a short cut to the key frame menu where you can choose between Ease In/Out, Smooth, and so on.
But that's not what I mean. I would like to know if it is possible to communicate with the "heart" of the software where the interpolation is really created.

If the answer is yes, (if the interpolation parametres can be controlled by a script) I can ask my second question.

2.

Is it possible to create a script that modifies the strength of deceleration?

Easing In is starting slowly and getting faster the more you are far from the starting key.
But this does not yet result in a finetuned animation. Because the degree of decelaration can create very different velocities for interpolations which all remain "eased in". If this was feasable it could be a practical solution to express the deceleration value by numbers. e.g. 1 = weak deceleration (starts quiet slowly), 10 = strong deceleration (starts very slowly).

This would help making velocities much more subtil. At the moment the speed control remains very limited, as there's is no way to modify the curves in a bezier mode.

stefman

Posted: Sat Jul 25, 2009 8:08 am
by Rudiger
Hi Stefman,

I'm afraid the answer is no, there are no fine controls for the channel interpolation in the script interface. A lot of people have requested bezier handles in the graph view, so here's hoping they make it into the program one day.

Posted: Sat Jul 25, 2009 1:17 pm
by stefman
Oh, what a pitty.

Yes let's hope that velocity control will became better in the next version.

I find that bezier handles are not indispensable. But at least the possibilty to influence it by numbers (1 - 10) would be a big achievement.
This is a feature wis has been in Flash for a long time.

And now a question which will reveal that I really am not a software developper:

Is it possible to indentify the command AS executes to make an Ease In?
And if yes, is it possible to apply only 10%,20% or 50% of this command?
(= Ease In with a value of 1, 2, or 5)

stefman

Posted: Sun Jul 26, 2009 1:58 pm
by stefman
The basic idea is like this.

1.Image 2.Image 3.Image 4.Image

In certain cases the images show graphs that can already be created with the default velocity parametres.

Image 1 is a Linear interpolation.

Image 2 resembles an Ease In, but is it much stronger than the default one in AS, because the Ease In value is at its maximum (10).

Image 3 resembles an Ease Out, but is it much stronger than the default one in AS, because the Ease Out value is at its maximum (10).

Image 4 is a Smooth interpolation.

But now, imagine the all the nuances you could get by choosing not so extreme values (all the rest between 0 and 10)


stefman

Posted: Sun Jul 26, 2009 4:00 pm
by heyvern
I had been working in the past on creating a "simulation" of "ease" using bones and constraints, maybe throw in some scripting. It would be great to have this "built in" but maybe... just maybe this could be "faked" with a script.

If you have ever played with Fazek's "bezier tool" simulation you can see that DISPLAYING that type of thing ON SCREEN is very possible. I could see possibly using that point information not for drawing points but to define MOTION instead. The display of those curves with Fazek's experimental tool is "real". So the values and locations of a bone on an imaginary "curve" should be possible using a script. The visiual feedback of a custom tool could show the ease values.

No promises or anything just throwing out ideas.

-vern

Posted: Sun Jul 26, 2009 6:39 pm
by stefman
Hey, this would be absolutely terrific. :D

stefman