Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Browsing all 3671 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Convert string (string of JSON) to JSON object?

**EDIT**I finally figured out how to use #include instead of file.read();. This solves my immediate problem. However I am still curious as to whether it's possible to do what I'm asking for below, just...

View Article


Optimize objects stacking order for vinyl cutting

Hello,i am looking for a script for optimizing vinyl cutting speed. The script should be similar to following , but needs to sort the selected objects by the relative position to page origin and not...

View Article


Image may be NSFW.
Clik here to view.

Change Ruler units of the document

Hi, How to change the ruler units or measurement units of illustrator document using script? I want to change the ruler/measurement units of activeDocument to type points pls help

View Article

What is the best way to compare 2 arrays?

I am filtering through a lot of text frames to get some numbers. The numbers reside on 2 different layers. So I have gathered just the numbers from each layer and given them each their own array. I...

View Article

Image may be NSFW.
Clik here to view.

Reading text from another open document tab/window and placing a grouped...

Hi, So I would as the title suggest read information from another open document/tab  So if i have art boards with constant similar names it does a close match to an object and if found select copy it...

View Article


Rotation Point from Symbol Item

Hi there!I write extention for AI. I need to get rotation point(pivot point - http://prntscr.com/jkzl7u ) from symbolic item from script.I don't found any ideas in guide for getting transformation...

View Article

Image may be NSFW.
Clik here to view.

How do I include DOM references to other apps in the same .jsx without...

Hey guys, say I have a single panel I want to use for both Illustrator and Photoshop. In JavaScript I can use csInterface to find the host application then route through a conditional to do...

View Article

How to pixelate clipped placed items.

Hello, I'm currently working on a script project and i'm stuck onto something. I need to embed all images (placed item (link)) but sometime, some of them are associated with a clipping mask. I know how...

View Article


Postscript Printing destination folder.

Hello, I'm currently working a lot on Illustrator Scripting/Batch and I recently encountered something I don't understand how to solve. So I have this code (cf link)#target illustrator try { if...

View Article


Image may be NSFW.
Clik here to view.

How do you write a loop for a function that runs an Action Script on one...

---------------------------------------------------Adobe Illustrator CC 2018 —Javascript--------------------------------------------------- Hi everyone, I'm trying to write a script that involves...

View Article

Image may be NSFW.
Clik here to view.

transform fibonacci sequence script to add scaling

Hello, I found this great script for taking an object and creating a fibonacci sequence (sunflower pattern).. it works great. But you may notice that sunflower get bigger as they move from the inside...

View Article

Export pageItems to PNG according to its size in Illustrator scripting

As depicted in the title, how do we achieve that? I tried few solutions, and best I can get is exporting artboard as PNG. Would like to export the object inside the artboard to PNG instead. I also...

View Article

How can I install the ExtendScript toolkit?

I want to write scripts for Illustrator. My copy of Illustrator CC 2018 on my iMac is installed and running perfectly, so I thought I could just get working on scripts. Adobe'sscriptingguide at...

View Article


How to do "Export Selection..." in Illustrator CC scripting?

I tried app.activeDocument.selection[0].exportFile(ExportFormat.PNG,File("~/Desktop/temp/1.png"),false);but it says exportFile is not a function in ExtendedScript.

View Article

How to overprint dashed strokes

I have this script and it works for what I need except that it should overprint all dashed strokes. I would really appreciate any help. functionopKoBlackRules(doc) {     varruleWidth = 2, grayColor =...

View Article


Image may be NSFW.
Clik here to view.

Can I convert RGB to RGBA or access individual fill/stroke opacity?

Hello again, my first CEP panel is a responsive Color History and not much but I'm really surprised by the results -- I'm not a programmer and never thought I could code. I'm going to rebuild it to...

View Article

Image may be NSFW.
Clik here to view.

Issue with selecting text generated from input dialog window

----------------------------------------------------Main Issue & Details----------------------------------------------------Adobe Illustrator CC 2018 — Javascript The sample code below: Opens a...

View Article


Image may be NSFW.
Clik here to view.

How to separate multiple layers to up ps / down ps files?

Im working at label printing company.I want to out multiple layers in up ps and down ps files.I currently use bellow path to out ps files.1. select usual layer and hide other layers.2. I make my...

View Article

I can't seem to use variables created inside of a UI

Here's my code, I'm still very new at this w = new Window('dialog', "Gadget");  w.grp1 = w.add('group');  w.grp1.orientation = "row";  w.grp1.alignment = "right";    w.grp1.add("statictext", undefined,...

View Article

Could I outline multiple layers, combine them, mirror it and correctly align...

I do a lot of the same things over and over with my designs, before exporting them to my next steps. My current manual steps are: Select 'Layer 4' and 'Layer 3', Outline Stroke, and Unite them in...

View Article
Browsing all 3671 articles
Browse latest View live