Forum Replies Created

Page 1 of 2
  • ayat fatima

    November 22, 2020 at 11:37 am in reply to: Expressions for shapes

    TThank You so much for your time…

    I’ve corrected the mistake but still it is not working.

  • ayat fatima

    November 22, 2020 at 4:14 am in reply to: Expressions for shapes

    Var shapeGroup = shapeLayer.property(“Contents”).addProperty(“ABDE Vector Group”);

    Var num=5;

    Var s=200.0;

    For(var i = num; i<=num; i++)

    .{

    CreateEllipse(shapeGroup, 100);

    ;

    .}

    Function CreateEllipse(shapeGroup, size)

    {

    Var ellipse=shapeGroup.Property(“Contents”).addPropertt(“ABDE Vector Shape – Ellipse”);

    Var ellipseSize=ellipse.property(“size”).setValue([size, size]);

    Var myProperty = shapeLayer.position;

    MyProperty.setValue ([s, 450,0]);

    S=s+200.0

    }

    I’m using this code to create 5 shapes in one layer using loop. But it is creating only one shape in the shape layer… Can anybody help me that why is it heppening?

  • ayat fatima

    November 12, 2020 at 10:43 am in reply to: Adobe after effects scripting

    In this code how can i change the position of shape..

  • ayat fatima

    November 12, 2020 at 10:42 am in reply to: Adobe after effects scripting

    // Adding shape layer for the circles

    var shapeLayer = currentComp.layers.addShape();

    // Adding circle shapes group

    var shapeGroup = shapeLayer.property(“Contents”).addProperty(“ADBE Vector Group”);

    // Adding circle shapes

    createEllipse(shapeGroup, 200);

    createEllipse(shapeGroup, 400);

    // Adding black stroke to the shapes

    var stroke = shapeGroup.property(“Contents”)

    .addProperty(“ADBE Vector Graphic – Stroke”)

    .property(“Color”).setValue([0, 0, 0]);

    function createEllipse(shapeGroup, size) {

    var ellipse = shapeGroup.property(“Contents”).addProperty(“ADBE Vector Shape – Ellipse”);

    var ellipseSize = ellipse.property(“Size”).setValue([size,size]);

    }

  • ayat fatima

    November 10, 2020 at 7:46 am in reply to: Adobe after effects scripting

    HHow can I set the position of a shape in shape layer… And how is it possible to combine more than one comps in the main comp

  • ayat fatima

    November 8, 2020 at 1:14 am in reply to: Adobe after effects scripting

    Thank You so much it has helped me a lot.

  • ayat fatima

    November 7, 2020 at 1:16 pm in reply to: Adobe after effects scripting

    var currentProject = (app.project) ? app.project: app.newProject();
    var compSettings = cs = [1280, 720, 1, 10, 24];
    var defaultCompName = “Demo”;
    var currentComp = (currentProject.activeItem) ? currentProject.activeItem: currentProject.items.addComp(defaultCompName, cs[0], cs[1], cs[2], cs[3], cs[4]);
    currentComp.openInViewer();
    var backgroundLayer1 = currentComp.layers.addSolid([93, 5, 2], “Background”, cs[0], cs[1], cs[2]);

    var mytextLayer = currentComp.layers.addText(“Bubble Sort\nSimple sorting algorithm\nComparison-based algorithm\nComparison of adajacen elements\nSwapped if they are in wrong order\nNo swapping if the order is true”);
    var textProperty = mytextLayer.property(“Source Text”);
    var textPropertyValue = textProperty.value;

    textPropertyValue.resetCharStyle();
    textPropertyValue.fontSize = 50;
    textPropertyValue.fillColor = [1, 0, 0];
    textPropertyValue.justification = ParagraphJustification.CENTER_JUSTIFY;
    textProperty.setValue(textPropertyValue);

    app.endUndoGroup();

    above code is working… But I’m unable to create more layers working at specified time or writing text letter by letter.

    can you please tell me that how is it possible in the above syntax.

  • ayat fatima

    November 7, 2020 at 6:56 am in reply to: Adobe after effects scripting

    It is still giving error of “undefined is not an object” at second line..☹

  • ayat fatima

    November 6, 2020 at 3:21 am in reply to: Adobe after effects scripting

    I’m finding the error of “undefined object” or “the null is not an object” in the following code:

    app.newProject();
    var myComp=app.project.item[1];
    var firstLayer = app.project.item[1].layers[1-2];

  • ayat fatima

    November 5, 2020 at 1:40 am in reply to: Adobe after effects scripting

    thank You so much.

    how can I write letter by letter text in after effects cs6

Page 1 of 2

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