Blending Two Paths in Javascript
Hi I am writing a script to automate the creation of a graph with axes and grids.
I have two PathItems called xGridLeft and xGridRight, both contained in the "Grids" layer of my document.I want to be able to blend these two paths together in a manner similar to selecting Object > Blend > Make from the menu, using the Specified Steps blending mode.
Can anyone help me with the code I need to accomplish this?
var graph = app.activeDocument;
var Grids = graph.layers.add();
Grids.name = "Grids";
var xGridLeft = Grids.pathItems.add();
xGridLeft.name = "xGridLeft";
xGridLeft.setEntirePath(Array(*two points*));
xGridLeft.strokeColor = Grey;
xGridLeft.fillColor - NoColor;
xGridLeft.strokeWidth = 0.5;
xGridLeft.strokeDashes = [2];
var xGridRight = Grids.pathItems.add();
xGridRight.name = "xGridRight";
xGridRight.setEntirePath(Array(*two different points*));
xGridRight.strokeColor = Grey;
xGridRight.fillColor - NoColor;
xGridRight.strokeWidth = 0.5;
xGridRight.strokeDashes = [2];
//What code do I need to put here?