FORUMS: list search recent posts

Size of Ellipse

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jakob Wagner
Size of Ellipse
on Apr 2, 2016 at 9:47:45 am

Hi

I'm using a script to add a shape layer with an ellipse. I can not figure out how to set it's size. Not even after reading other posts...

This is what I am trying:

var l = comp.layers.addShape();
l.name = "Ellipse";
var g = l.property("Contents").addProperty("ADBE Vector Group");
var e = g.property("Contents").addProperty("ADBE Vector Shape - Ellipse");
g.property("Contents").addProperty("ADBE Vector Graphic - Stroke");

l.("Contents")("Group 1")("Contents")("Ellipse Path 1")("Size") = [300,300];


The last line doesn't work. Can anybody help?
Do any of you know of a reference for this "ADBE Vector" system?

Thanks,
Jakob


Return to posts index


Jakob Wagner
Re: Size of Ellipse
on Apr 2, 2016 at 9:56:36 am

Sooo.. Sometimes when you post after 2 hours frustration you figure it out 5 mins later. :)

This is the solution:

l("Contents")("Group 1")("Contents")("Ellipse Path 1")("Size").setValue([300,300]);

I would still like to hear about that reference though.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]