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.