ayat fatima
Forum Replies Created
-
TThank You so much for your time…
I’ve corrected the mistake but still it is not working.
-
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?
-
In this code how can i change the position of shape..
-
// 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]);
}
-
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
-
Thank You so much it has helped me a lot.
-
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.
-
It is still giving error of “undefined is not an object” at second line..☹
-
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]; -
thank You so much.
how can I write letter by letter text in after effects cs6