Le 2011/04/14 16:27, jkennedy12 a écrit :
> Is it possible to store a value and access it over the duration of the
> I'm trying to create an animation of a camera following a track created by
> Spline_Trans and Sphere_Sweep. I would like to control speed with the change in
> y. Any ideas as to pass the variable along would be great.
You can use the file i/o feature.
At the end of the parsing, or just after you get the value to pass, you
write it to a file.
On the next frame, you read it back.
Add a test so that, on the first frame, you don't attempt to read the
yet unexistant file.
For an example, look at bounce.pov in animation\boing.
That scene does just that: For each frame, it saves the position and
speed of a bouncing ball for the next frame. Starting on frame 2, it
reads back the previous values.
Post a reply to this message