Animate shape in plugin in c++
Dear AE fellows.
I'm trying to write a plugin for AE in c++.
So far I've learnt how to draw simple curves. What I don't know is how to animate these curves as the user moves a time slider in timeline panel.
Suppose I draw a circle:
_____________________________________
double x = 100;
double y = 100;
double R = 50;
double phi1 = 0.;
double phi2 = 2*MF_PI.;
cairo_t *cr = cairo_create(surface);
cairo_arc(cr, x, y, R, phi1, phi2);
_____________________________________
I want the radius of the circle to change as the user moves time slider from 0 to 30 frames.
How do you achieve this?
Yaroslav.