s = Math.round(effect(“Sellect 2”)(“Slider”).value);
numPts = Math.round(effect(“Duplicate”)(“Slider”).value);
Path = content(“Shape 1”).content(“Path 2”).path;
newP = [];
newIt = [];
newOt = [];
for(i=0; i <= s;i++){
newP.push(Path.points()[i]);
newIt.push(Path.inTangents()[i]);
newOt.push(Path.outTangents()[i]);
}
for(i=0; i < numPts;i++){
newP.push(Path.points()[s]);
newIt.push(Path.inTangents()[s]);
newOt.push(Path.outTangents()[s]);
}
for(i = s; i < Path.points().length; i++){
newP.push(Path.points()[i]);
newIt.push(Path.inTangents()[i]);
newOt.push(Path.outTangents()[i]);
}
createPath(newP,newIt,newOt,false);
I got it.