Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Move a Spot color to a layer

$
0
0

I am very new to this, but am excited to unlock the power of scripting Adobe products. I have search through the forum for a similar issue but couldn't quite find the answer. This is my problem:

 

I am trying to grab specific spot colors and move them to separate layers for our cutting software. In this case I am trying to grab "perimeter cut" and move it to a layer called "tc 1"

I get the following error when I try to run the script.

Screen Shot 2013-10-10 at 9.44.38 AM.png

 

 

#target Illustrator

 

 

var idoc = app.activeDocument;

var ipath = idoc.pathItems;

 

 

    if (ipath.typename == "SpotColor") {

        if (ipath.spot.name == "perimeter cut") {

                    ipath.move(tc 1, ElementPlacement.PLACEATBEGINNING).

                              }

                    }


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>