Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Size of Ellipse

  • Posted by Jakob Wagner on April 2, 2016 at 9:47 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

    Jakob Wagner replied 10 years, 1 month ago 1 Member · 1 Reply
  • 1 Reply
  • Jakob Wagner

    April 2, 2016 at 9:56 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.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy