FORUMS: list search recent posts

After Effects script to create a shape

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Arminas Saltenis
After Effects script to create a shape
on May 19, 2018 at 2:17:38 pm

Hi,

In university we need to remake our ae project with only script. I have my project, now I need to write script for it. And I can't even start with basic shape creating, because it throws error: connectorGroup is undefined.
I think it's the one mistake for all my code, so here is part, where I'm trying to make shape, but it throws error:


var connector = myComp.layers.addShape();
connector.name = ("Connector");

var connectorContent = connector.property("Contents").addProperty("ADBE Vector Group");
var connectorRect = connectorGroup.property("Contents").addProperty("ADBE Vector Shape - Rect");
var connectorFill = connectorGroup.property("Contents").addProperty("ADBE Vector Graphic - Fill");
connectorRect.property("Size").setValue([300, 30]);
connectorRect.property("Position").setValue([960, 540]);
connectorFill.property("Color").setValue([255/255, 204/255, 153/255]);


Thank you!


Return to posts index

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