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

Is there a way to batch rename artboards in Illustrator CC?

$
0
0

Is there a way to batch rename artboards in Illustrator CC?

I have 20 different artbords that i want to rename with a specific name and number!

/Pål


PageItem.applyEffect(LiveEffectXML)

$
0
0

I am wondering if anyone has been able to figure out what kind of "LiveEffectXML" is a parameter to PageItem.applyEffect()

It's been years since this feature has been out, but no documentation anywhere.

Transform Each

$
0
0

Hi all,

 

i'm working on a script and final step is missing, i just want to know Transform each function code on JavaScript, or at least i want to create a code can do a shortcut like (Alt+Ctrl+Shift+D)

 

 

Object > Transform > Transform Each with Reflect X and Center point position

 

image.png

 

 

7.png

 

 

is it possible??

 

 

Thanks a lot

 

How to embed multiple images

$
0
0

Hello!

 

I have been tying to figure out how I could easily embed multiple linked images easily. I have some 1000 .svg  images which have about 1-7 .tif images linked in to them. I now need to get those links embedded and becouse of the amount of images I'm hoping to make an action out of it. I have a script to embed single image in .svg but haven't have luck with multiple embeddings.

 

Any ideas?

Split Text into Layers

$
0
0

I was wondering if anyone is aware of a script that is able to do the same as this photoshop one http://www.agasyanc.ru/text-splitter, I would use that one in photoshop but its not working in CS6.

 

I  was hoping to find a script that will seperate the text into layers  ready for export to After Effects to be used in Kinetic Typography  pieces

 

thank you

set the filename in a textframe with JS in Illustrator CS2 WIN

$
0
0
Hello and good morning (and sorry for my bad english),

I found some possibilities to set the filename in a textframe. But only in applescript or for CS (WS-dateandtime v0.8 from Wolfgang Reszel)
b There is no JS-script, which works correctly in Illu CS2 Win.

Please, help me to get a JS-script that proper works.
Here is the code:

----------------------
//////////////////////////////////////////////////////////// english //
// ----------------------
// -=> WR-DateAndTime <=-
// ----------------------
//
// A Javascript for Adobe Illustrator
// by Wolfgang Reszel (ai-js@rumborak.de)
//
// Version 0.8 from 30.8.2004 (also should work with Illustrator CS)
//
// This script inserts the actual date or the actual time to a
// predefined position in the document.
//
// To define the position, you'll have to create an textobject and
// execute this script while the object is selected. The whole object
// has to be selected and not words or letters. You can mark more
// objects, if you select each object separate and execute
// the script on it.
//
// With the placeholders {DATE} and {TIME} you are able to define a
// particular point, where the date or the time should be replaced.
// If there is no placeholder in the textobject
// "{FILENAME} ({DATE}, {TIME})" will be used as standard placeholders.
//
// To update the date and time execute this script without any object
// selected.
//
// There are some additional placeholders:
// {FILE} - complete document-filename with path
// {FILEPATH} - only the documents filepath
// {FILENAME} - the filename of the document
//
// On my system this script can't see the path of the document, when
// it was opened directly from windows Explorer (double click).
//
// In Illustrator CS it is now possible to edit a DateAndTime-Object.
//
// To enable the english messages and date-format change the "de"
// into "en" in line 90.
//
// Sorry for my bad english. For any corrections send an email to:
// ai-js@rumborak.de
//
//////////////////////////////////////////////////////////// Deutsch //
// ----------------------
// -=> WR-DateAndTime <=-
// ----------------------
//
// Ein Javascript fuer Adobe Illustrator
// von Wolfgang Reszel (ai-js@rumborak.de)
//
// Version 0.8 vom 30.8.2004 (sollte auch unter Illustrator CS laufen)
//
// Dieses Skript fuegt das aktuelle Datum und die aktuelle Uhrzeit an
// eine vorher bestimmte Stelle im Dokument ein.
//
// Um eine Stelle zu bestimmen, muss man ein Textobjekt erzeugen, es
// markieren und dann dieses Skript aufrufen. Es muss das gesamte Objekt
// ausgewaehlt sein, nicht etwa Buchstaben oder Woerter. Es lassen sich
// nacheinander auch mehrere Objekte als Datum/Uhrzeit markieren.
//
// Mit den Platzhaltern {DATE} und {TIME} (in geschweiften Klammern)
// kann man bestimmen, wo genau im Text das Datum und die Uhrzeit
// erscheinen soll. Sind die Platzhalter nicht vorhanden, wird
// automatisch "{FILENAME} ({DATE} - {TIME})" verwendet.
//
// Zum Aktualisieren des Datums/Uhrzeit muss man dieses Skript aufrufen
// wenn kein Objekt ausgewaehlt ist.
//
// Es gibt noch einige zusaetzliche Platzhalter:
// {FILE} - kompletter Dateiname mit Pfad
// {FILEPATH} - nur der Verzeichnispfad des Dokuments
// {FILENAME} - der Dateiname des Dokuments
//
// Auf meinem System kann der Pfad nicht ermittelt werden, wenn das
// Dokument vom Windows Explorer geoeffnet wird (Doppel-Klick).
//
// InÿIllustrator CSÿkann man nun ein Datum/Uhrzeit-Objekt bearbeiten.
//
// Um dieses Skript mit deutschen Meldungen und Datumsformat zu
// versehen, muss in Zeile 90 das "en" durch ein "de" ersetzt werden.
//
// Verbesserungsvorschlaege an: ai-js@rumborak.de
//

//$.bp();

// -------------------------------------------------------------------

var language="de"; // "de" fuer Deutsch

// -------------------------------------------------------------------

var WR="WR-DateAndT

Batching In Illustrator??

$
0
0

In PhotoShop CS3, you can select File/Automate/Batch, and run an Action on an entire folder.  I don't see that option in Illustrator CS3?  Is there a way to run an action on an entire folder?

 

I'm attempting to save many EPS images as PNG images, and would really like to retain "vector attributes" - is any of this possible???

 

Thanks for any help.

Illustrator Scripts - Windows vs. Mac

$
0
0

Hi I have a question regarding compatibility beetween Windows and Mac scripts.

Does a script writen in Windows works in a Mac computer ?

and viceversa.

 

Thanks

 

Manuel


Is there a collection of free commonly useful scripts?

$
0
0

I know about the various sample scripts, but does there exist a source of open and free scripts that are popular?

ACROBAT via BRIDGE TALK

$
0
0

Hi

 

Is there any way to open a file on ACROBAT via BRIDGETALK?

Script for Copy and Paste Object from one Ai file to another Ai file.

$
0
0

Is it possible to create script that will take object (Text and Images) form one and AI file and placed them into another AI file in specific layer and location?

 

When I do it manually:

 

#1 - Create Banner Design (Text and Images)

# 2 - Outline the text and group it with images to make it one object.

# 3 - Copy the group object

# 4 - Open another Ai file

# 5 - Paste it into specific layer and adjust location

 

We do this to individually customize documents and it is very time consuming.

 

Feel free to contact me directly, we will consider to hire programer to help us.

Can you hide a layers using scripting?

$
0
0

I have a very complex graphic with many elements and I would like to find a way to hide layers based on a list.  In the documentation that there is a way to tell if a layer is hidden, but didn't see anything about a way to actually to control the hide/unhide property.  Is this possible?

 

Thanks!

Copy artboard (and art) to another document

$
0
0

Is there a way to write a script to copy a selected/chosen artboard (and it's contents) to another opened document, placing it in exactly the same place on the global x/y coordinates?  I'm either unable to find this feature built in to Illustrator, or it's simply missing.  Any help is greatly appreciated.

 

Thanks!

Tim

ScriptUI listbox click events CC

$
0
0

Just looking for confirmation: in CC does it appear that only recognized click even is a double-click?

How can I get current Mouse position via Javascript?

$
0
0

I'm trying to build a javascript tool in ExtendScript Toolkit CC to work with Illustrator CC (2015) but have run into a snag.

 

The script will create an object (a small circle in this case) at the mouse's current position within the document's active layer. But I can't seem to find a call in the library to retrieve the location info. I know that the data is tracked because if I open the "Window > Info" tool it shows the cursor's X and Y position in relation to the document bounds.

 

Is there a call anywhere in the javascript library that gives me access to these data points?


Set unit preferences (Javascript)

$
0
0

I can't find a way to set the unit preferences for Illustrator CS6/CC using JavaScript.

 

I found that this works (setting units for stroke):

var units = 2; // 0-inches, 1-milllimeters, 2-points

app.preferences.setIntegerPreference("strokeUnits", units)

 

But I want to set the ruler units ("General" in the interface), and this does not work:

app.preferences.setIntegerPreference("rulerUnits", units)

 

Any help?

Peter

Convert .ai to .doc

$
0
0

Hi,

 

Can it be possible to convert .ai file into .doc file or any tool which will do this conversion.

 

Thanks,

Shail

import a Graphic Style Library in Adobe Illustrator using Javascript?

$
0
0

I am creating a script to distribute to users.

The package contains 1 script and a graphic style library that is required to apply a 3d effect in the script.

Is there a way to open the graphic style library from the script?

The script and library will both be located in the Adobe Illustrator Presets.

I am trying to reduce the amount of actions required by the user so that they only need to run the script without having to open the graphic style library first.

Below code occurs error: target layer cannot be modified

But no unvisible or locked layer

var style = app.activeDocument.graphicStyles.getByName("Jive_GS");

style.applyTo(myvector);

Convert to Grayscale

$
0
0

Hello,

 

It is possible to apply the Convert to Grayscale(Edit->Edit Colors->Convert to Grayscale) for the selected items in illustrator cs3 in script (javascript)?

Kindly advice me the possiblities.

 

I'm a begginer I hope somebody help me

Thanks a lot

Florin

Javascript for Illustrator : Copy a document on another specific document issue

$
0
0

Hi,

I've managed to select elements on a source file but it fails when copying. The selection should be copied on targetFile.

There is like 5 to 10 files by sourceFolder (there is an error in opening each file but this is not the matter for now - only the first one is openend)

 

var targetFile = app.documents.add();                                   //this is my output file - it works

 

folder = Folder.myDocuments;                                               //this paragraph works for now

sourceFolder = folder.selectDlg("source");

for ( i = 0; i < files.length; i++ ){

     var sourceDoc = app.open(files[i]);

     var doc = app.activeDocument;

     for (i = 0; i < doc.pageItems.length; i++) {

                doc.pageItems[i].selected = true;

    }

 

     var mySel = app.activeDocument.selection;          //this paragraph need rework

     newItem = mySel[0].duplicate();                              //mysel.duplicate() is not a function

}

 

Thanks I copy a document, resize it and place it then I print the output

Viewing all 12845 articles
Browse latest View live


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