Entdecker
,
/t5/illustrator-discussions/adjust-script-to-create-processs-and-rgb-swatches/td-p/13897158
Jun 27, 2023
Jun 27, 2023
Link in Zwischenablage kopieren
Kopiert
i need to two seperate scripts...
1 that will make a process color swatch
and a second that will create a RGB swatch
i have been using this to create my spot color swatch but i do not know what needs to be revised to make the two additional versions that i need
try { var newSpot = app.activeDocument.swatches.getByName("SPOT 262"); alert("spot 262 already exists")}
catch (e) {
var newSpot = app.activeDocument.spots.add();
var newColor = new CMYKColor();
newColor.cyan = 52;
newColor.magenta = 92;
newColor.yellow = 12;
newColor.black = 50;
newSpot.name = "SPOT 262";
newSpot.colorType = ColorModel.SPOT;
newSpot.color = newColor;
var newSpotColor = new SpotColor();
newSpotColor = newSpot;
newSpotColor.tint = 100;
}
//alert("done"); }
as always, any help is appreciated
scott
scott
THEMEN
Anleitung
,
Skripterstellung
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten.
Weitere Informationen
2 richtige Antworten
Ratgeber
,
Jun 27, 2023
Jun 27, 2023
var colour1 = new RGBColor();
colour1.red = 250;
colour1.green = 0;
colour1.blue = 0;
swatch1 = app.activeDocument.swatches.add();
swatch1.color = colour1;
swatch1.name = "Red 1"
Ratgeber
,
Jun 27, 2023
Jun 27, 2023
var colour2 = new CMYKColor();
colour2.cyan = 0;
colour2.magenta = 100;
colour2.yellow = 100;
colour2.black = 0;
swatch2 = app.activeDocument.swatches.add();
swatch2.color = colour2;
swatch2.name = "Red 2"
Entdecken Sie verwandte Tutorials und Artikel
Ratgeber
,
/t5/illustrator-discussions/adjust-script-to-create-processs-and-rgb-swatches/m-p/13897251#M371620
Jun 27, 2023
Jun 27, 2023
Link in Zwischenablage kopieren
Kopiert
var colour1 = new RGBColor();
colour1.red = 250;
colour1.green = 0;
colour1.blue = 0;
swatch1 = app.activeDocument.swatches.add();
swatch1.color = colour1;
swatch1.name = "Red 1"
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten.
Weitere Informationen
@Js1212
AUTOR
Entdecker
,
/t5/illustrator-discussions/adjust-script-to-create-processs-and-rgb-swatches/m-p/13897255#M371621
Jun 27, 2023
Jun 27, 2023
Link in Zwischenablage kopieren
Kopiert
thank you...and how to make the CMYK version?
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten.
Weitere Informationen
Ratgeber
,
/t5/illustrator-discussions/adjust-script-to-create-processs-and-rgb-swatches/m-p/13897261#M371622
Jun 27, 2023
Jun 27, 2023
Link in Zwischenablage kopieren
Kopiert
var colour2 = new CMYKColor();
colour2.cyan = 0;
colour2.magenta = 100;
colour2.yellow = 100;
colour2.black = 0;
swatch2 = app.activeDocument.swatches.add();
swatch2.color = colour2;
swatch2.name = "Red 2"
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten.
Weitere Informationen
@Js1212
AUTOR
Entdecker
,
AKTUELL
/t5/illustrator-discussions/adjust-script-to-create-processs-and-rgb-swatches/m-p/13897281#M371623
Jun 27, 2023
Jun 27, 2023
Link in Zwischenablage kopieren
Kopiert
THANK YOU!!!!!
scott
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten.
Weitere Informationen

