-
Create a Shape Ellipse from Nulls
Hi all,
I wanted to create a Shape Ellipse from some Nulls(I have 300) in same position from every Null and parent it.
I’m not that great on expressions, I even managed to create a single solid but I can’t even color or resize it even using rd_GimmePropPath to get these properties
I am running a script file… any tips?
Thanks for your attention,
Rubensapp.beginUndoGroup("Add new shape layer");var myEllipseSize = [500,500];
var myFillColor = [230, 130, 30];var firstNull = 30;
var lastNull = 330;var curComp = app.project.activeItem;
if(curComp){
for(firstNull; n < lastNull;n++){
var shapeLayer = curComp.layers.addShape();
var shapeGroup = shapeLayer.property("Contents").addProperty("ADBE Vector Group");
shapeGroup.property("Contents").addProperty("ADBE Vector Shape - Ellipse");
shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Stroke");
shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Fill");shapeGroup.content("Fill 1").color = myFillColor;
shapeGroup.content("Ellipse Path 1").size = myEllipseSize;
shapeGroup.content("Ellipse 1").content("Ellipse Path 1").size; // Just try
}
}app.endUndoGroup();
Rubens Angelo
http://www.movee.tv