Path created with an expression will not draw other than being selected I am trying to create a heart shape using an expression like this:

Start AE
New Composition + Ok
Layer, new shape layer
Expand to get the contents node and click add Path
Path -&gt; Edit expression

Then I paste this expression:
var path = thisProperty;
var allPoints = new Array();
for (var a = 0; a &lt; 360; a++) {
  var theta = degreesToRadians(a);
  x0 = Math.cos(theta);
  x = 300 * x0;
  y = 0.75 * 300 * (Math.sin(theta) - Math.sqrt(Math.abs(x0)));
  allPoints.push([x,y]);
}
path.createPath(allPoints, [], [], true);

and I see this on the screen

But this will only be visible in the designer.
If the object is deselected, it will become invisible.
There is no way to control the stroke width, color or fill.
How can I control those properties?
I am trying to add a stroke alongside the path, but they will not &quot;connect&quot;.
Apologies if I've misunderstood, but you can just click on the Add triangle, and add a fill or a stroke to your shape:

The modifiers in the &quot;Add&quot; menu are hierarchical - so you have to add them below the path's hierarchical level.