Get Path
Hi
When I do this it will draw a line, but the alert line will break the script:
var shapeLayer = comp.layers.addShape();
shapeLayer.name = "Shape Layer";
var shapeGroup = shapeLayer.property("Contents").addProperty("ADBE Vector Group");
shapeGroup.name = "Group";
var pathShape = new Shape();
pathShape.vertices = [[0,0],[100,100]];
pathShape.closed = false;
var pathGroup = shapeGroup.property("Contents").addProperty("ADBE Vector Shape - Group");
pathGroup.property("Path").setValue(pathShape);
var pathStroke = shapeGroup.property("Contents").addProperty("ADBE Vector Graphic - Stroke");
pathStroke.property("Color").setValue([0,0,0]);
pathStroke.property("Stroke Width").setValue(4);
alert(pathGroup.property("Path").value);
Why is that? Problem is, I need to send that path value to another function and when I do that it breaks.
Thanks,
Jakob