Forum Replies Created

Page 3 of 3
  • Krishna Moorthy

    November 4, 2016 at 1:55 pm in reply to: ExtendScript Toolkit – After Effects

    Oops! Sorry for the inconvenience, I think, I had addressed the problem wrongly. Here is actual problem (really).

    1 var shapeLayer = pipComp.layers.addShape();
    2 var contents = shapeLayer.property("ADBE Root Vectors Group");
    3 var shapeRect = contents.addProperty("ADBE Vector Shape - Rect");
    4 var shapeFill = contents.addProperty("ADBE Vector Graphic - Fill");
    5 var rectSize = shapeRect.property("ADBE Vector Rect Size");
    6 var rectPosition = shapeRect.property("ADBE Vector Rect Position");
    7 var rectRoundness = shapeRect.property("ADBE Vector Rect Roundness");
    8 rectSize.setValue ([600, 400]);
    9 rectPosition.setValue([0.0, -90]);
    10 rectRoundness.setValue(10);
    11 pipComp.layers[2].trackMatteType = TrackMatteType.ALPHA

    ESTK throws error at the 5th line of above code snippet. And the error is “Objects is invalid”.
    The purpose of line 5 to 10 is to change the values of the shape layer.

    Thanks in advance!

  • Krishna Moorthy

    November 4, 2016 at 12:03 pm in reply to: ExtendScript Toolkit – After Effects

    Having a another doubt in the same project that I am working on!

    Now, its for a shape layer which will be the track matte for the layer below it.

    I have created a shape layer and added a rectangle using the code below.

    var shapeLayer = pipComp.layers.addShape();
    var contents = shapeLayer.property("ADBE Root Vectors Group");
    shapeRect = contents.addProperty("ADBE Vector Shape - Rect");

    Now, to make this as a track matte for the layer below it, the shape layer should have a fill property. So, when I added a Fill property to the shape layer by using this shapeFill = contents.addProperty("ADBE Vector Graphic - Fill"); line of code below the above lines of code, the ESTK throws an error at this particular line stating, “Object is invalid”.

    But if I place the shapeFill line above the shapeRect line, it works fine as it creates a shape layer with Fill and Rectangle property one after another. But we need the Rectangle property in the top so that the Fill property will be visible.

    I hope I explained my situation clearly. kindly, help me to crack this out.

    Thanks in advance.

  • Krishna Moorthy

    November 4, 2016 at 5:27 am in reply to: Problem with pre rendered alpha channel

    Don’t know what you are exactly asking for. Try Clicking this icon for toggling between transparency. To identify the icon, I have highlighted it with a red circle in the screenshot below.

  • Krishna Moorthy

    November 4, 2016 at 5:19 am in reply to: ExtendScript Toolkit – After Effects

    Thank you for your quick response Walter.
    That’s what I am looking for.
    Found that you are replying in most of the posts here. Great work! keep it up!!
    Once again, Thank you!

Page 3 of 3

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