Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

adding time dependent curve

$
0
0

Dear AE fellows, I'm starting to learn JavaScript for AE.

I'd like to make a script which

1) adds to the layer time dependent vector curves (vector curves with  vertices and tangents evolving with time).

2) add "time slider" so the user can  control the evolution and add key frames. (In most cases the curve consists of up to twenty vertices and the contour is progressively drawn as time changes)

 

Is it possible with JavaScript?

 

So far I found how to draw the static curve.

 

 

var myShape = new Shape();

myShape.vertices = [[300,50],[200,150],[300,250],[400,150]];

myShape.inTangents = [[55.23,0],[0,-55.23],[-155.23,0],[0,55.23]];

myShape.outTangents = [[-55.23,0],[0,100.23],[55.23,0],[0,-55.23]];

myShape.closed = false;

myShapeGroup.property(1).property("ADBE Vector Shape").setValue(myShape);

 

Yaroslav.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>