ExtendScript help for adding expression to shape layer properties
I'm brand new to ExtendScript, but know my way around expressions pretty well. I have a situation where I have mulitple AI vector layers in a comp that I want to convert to shape layers then add an expression to the stroke property of each. I've read some guides, posts, and the scripting reference, but am finding it hard getting any where.
The steps I would like to put in the script are:
- Take the selected layer AI vector layer and create a shape layer from it (i.e. Create > Create paths from vector layer). I know I can use app.executeCommand(3973) for this.
- Remove the " Outlines" text from the new layer name.
- On the new shape layer, for all objects in all groups, add the following expression to the Stroke Width property:I'm hoping some smart scripters out there can get me started.scaler = transform.scale[0];sWidth = thisComp.layer("control").effect("Stroke Width")("Slider").value;sWidth * (100/scaler);
Thanks!
