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

Is it possible, using javascript, to copy and rename an existing document? The copy I've managed, and resized the artboard to suit my intentions; but I think the .name property is read only. Do I have to wait until it's time to save it?


All Group to Ungroup Script

Trying to modify SaveDocsAsSVG to open and save all files within a directory automatically

$
0
0

I am trying to do as the title suggests, but I can't find a way to specify the folder I want the script to look at and I can't get it to open/save/close the files without user interaction. Another way to say it is that I need this to be itterative as the PC I'm using cannot handle too many open files at once.

 

On a side note, I can't even find the documentation. Example, what arguments does Folder.selectDialog() accept? Where is the documentation for that?

 

Thank peeps!

 

Using CS6 trying to convert EPS to SVG

Menu Commands Outline Stroke

$
0
0

Hello Everyone,

 

I am trying to find an outline stroke menu command (without a diolog box popping up)

 

app.executeMenuCommand ('Expand3') Works, but I am trying to see if there is a way to avoid the dialog box.

 

app.executeMenuCommand ('Outline Stroke')

app.executeMenuCommand ('OutlineStroke')

app.executeMenuCommand ('outlineStroke')

app.executeMenuCommand ('outline Stroke')

app.executeMenuCommand ('outline stroke')

 

None of those seem to work. Also, if there is an official reference somewhere for all the menu commands that would be helpful as well.

 

Thanks guys!

script to put artboard names in text boxes

$
0
0

Hi there. I have an Illustrator document with ~100 artboards, each artboard named by me. Each artboard has one textbox in it. Is there a way to take whatever name I assign to the artboard and print it into the text box inside that artboard? So in the end I would be able to see the name associated with each artboard on the artboard itself. Ideally I could run the script once (i.e. "turn it on"), have it populate all the text boxes with the artboard names, and then have it dynamically update the textboxes when I change an artboard name regardless of whether the file has been closed and opened since I originally ran the script.

 

Maybe this is more of a plugin? Either way I don't have any idea how to approach the problem, nor much scripting experience (I've tried several times, but never succeeded! ).

 

Petros_

Script for Selecting Open Paths in Illustrator CS6

$
0
0

I have created this script for selecting open paths in illustrator cs6 as the graffix plugin is not working under CS6.

 

Just save the following text in /Applications/Adobe Illustrator CS6/Presets/en_US/Scripts/Select Open Paths.js

 

 

if (documents.length > 0 && activeDocument.pathItems.length > 0){
 
          var allPaths = activeDocument.pathItems;
          var allPathsCount = allPaths.length;
          var openPathsAreLocked = false;
          var lockedOpenPaths = 0;
          var locked = false;
          for (var i=0; i < allPathsCount; i++){
                    allPaths[ i ].selected = false;
 
                    if( ! allPaths[ i ].closed){
 
                              try{
                                        allPaths[ i ].selected = true;
                              } catch (e) {
                                        openPathsAreLocked = true;
                                        lockedOpenPaths++;
                              }
 
                    }
          }
          if (openPathsAreLocked) alert (lockedOpenPaths + " open paths are locked or hidden (or their layer is locked or hidden) and cannot be selected");
}

Layer selection in batch / Ebenenauswahl in Stapelverarbeitung

$
0
0

Hi fellow Illustrator Experts,

 

imagine you have a ton of EPS files which are build nearly the same.

All is sorted into layers - those Layers are all named and organized.

Every EPS has up to 7 layers, sometimes less.

 

My task is to make the layer on the bottom, the "Background" Layer invisible in all of them.

I tried to hide and unhide the layers to get my selection down to the background layer.

The only problem here ist, that the "hide - select all - unselect - hide again" steps don't always get me to the background layer - depending on the number of layers in the file.


With that in mind i am looking for an option/ a script / a trick to teach my batch that it should do the Aktion to the Layer with the name "Background" (based on the layer name).

Has anyone an idea how to do it or can point me into the direction where to look for a script that can do that, or has any tips for me how to create such a script?


I hope to hear from you soon.


Adilos

Script for closing the open paths on Illustrator CC2015

$
0
0

Can someone give me a script to close all the open paths on Illustrator CC2015 ?  Thanks.


Scripting Illustrator actions, incorporating calls to Excel

$
0
0

Hello all, I need some help...

 

I am building a series of logos — based on word strings —  using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file.

 

Normally for one or two iterations of the process, I would not hassle with a script, but this is a mind-numbing repetitive task, and I have to make 6,000 logos!! Seems the ideal use for a script.

 

We have tried to work with ExtendScript Toolkit (ESTK) but we can't get our heads around how to make it do certain things, and I can't find anyone who really knows how to use ESTK correctly.

 

I have a MAC, so the script has to be written in Java Script or Apple Script.

 

Here's what I need to do:

 

  1. Execute Action: Open a Master Illustrator doc. This doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set. <pause Action>
  2. Run Script: Retrieve the word string from a cell in Excel worksheet (or CSV??). Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm". There are two additional charaters "tm" at the end of the word string that will be acted upon (remember these two characters for item 7 below)
  3. Run Script: Place this WordString into the predefined type box in the Illustrator Master doc. That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator? <pause Script>
  4. Execute Action: Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm  <pause Action>
  5. Run Script: Select all caps in word string. Example: DinnerPartiestm<pause Script>
  6. Execute Action: Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm<pause Action>
  7. Run Script: Select last two letters of word string. Example: DinnerPartiestm<pause Script>
  8. Execute Action: Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm<pause Action>
  9. Run Script: Select text box. <pause Script>
  10. Execute Action: Apply Stylize > Drop Shadow — On contents of text box, preset DS parameters in either Appearence panel or Effect menu.
  11. Execute Action: File > Save As .ai document. <at Save As dialog, pause action>
  12. Run Script: Retrieve file name from Excel and place in Save As dialog (copy & paste?). In next column in Excel doc, same row, is a SEO-friendly file name. Example: word string is "DinnerParties"; file name (next column) is "logo-dinner-parties"
  13. Run Script: Select folder to save the .ai doc into. Example: Folder is "Logos AI". <pause Script>
  14. Execute Action: Complete Save As. Example: in Folder "Logos AI" now we have the file "logo-dinner-parties.ai"
  15. Execute Action [assumes that the Saved As document — logo-dinner-parties.ai — is now the active one in Illustrator]: Save for Web & Devices. Preset to PNG24/Transparent. Correct file name will NOT be in Save field. <at Save dialog, pause action>
  16. Run Script: Repeat retrieval process to get same file name from Excel.
  17. Run Script: Select new folder to save the .png doc into. Example: Folder  is "Logos PNG". <pause Script>
  18. Execute Action: Complete Save for Web. Example: in Folder "Logos PNG" now  we have the file "logo-dinner-parties.png"
  19. Execute Action: Close
  20. Repeat steps 1 though 19 until all word strings processed: Script has to know to go to next word string (next row) in Excel doc.

 

This is a tricky one, but there's got to be a way to automate the process... otherwise I'll go crazy doing this manually!!

 

IS THERE ANYBODY OUT THERE WHO CAN HELP?

 

Thanking you in advance for any assistance.

 

All the best.

Calling functions from UI palette

$
0
0

Hello,

From what I understand, you can't call complex functions from a scripted UI palette, only from "dialog" windows (which are usless in my case) because I need the persistance of a palette.

 

I have a series of scripts in use now that are  accessed from the usual "file-scripts folder" within Illustrator itself (about 27 of them).  I want to script a palette window so users can acces them without the usual mouse clicks down the menu system.

 

I'm able to call a simple "Hello World" type function using the "onClick()" method from a button of a scripted palette window, but I cannot use my regular working scripts inside a function that's called from the button.  In X-Code, I was able to write my scripts individually, then just add them to a main floating window via a separate function when they were completed.  But, I'm finding Javascript a little more tricky.

 

If I copy my other's script code into the function in the palette window script, it runs, but it runs before I click the button! --  After in runs, then the palette window is displayed(?).  If I try to use the execute() method with "onClick", the script just opens in the SDK, it will not and does run in Illustrator.

 

I take both of these as clear indications that I have no clue what I'm doing (or that I'm trying to do the impossible).

 

I did find someone with a similar problem, but they were scripting After Effects and were offered this solution:

 

system.callSystem ('afterfx -r "/C/Program Files/Adobe/Adobe After Effects CS3/Support Files/Scripts/GlobalVars.jsx"');

 

 

Is there anything I can do in Illustrator that will allow me to call (or execute) my other scripts/functions and have them execute within Illustrator?

 

Thanks for any and all help!

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.

batch script quits after one file

$
0
0

Hello Everyone! I'm having a bit of trouble getting this script file to batch correctly.

 

The script will open all pdf files from the user specified folder. Then it's supposed to open the first file and check all objects for specific colours (which are die lines) and change it to a specific spot colour. Now the script works perfectly if I run the script on one file. Now that I've tried to batch the code to execute on each file, it seems to fail after the first one.

 

I can't think of what would be causing this to happen. Please help!

 

Below is the code:

 

// Main Code [Execution of script begins here]
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;


// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with your PDFs you wish to batch');
// If a valid folder is selected
if ( sourceFolder != null )
{
    files = new Array();    fileType = "*.pdf"; //prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );    // Get all files matching the pattern    files = sourceFolder.getFiles( fileType );    if ( files.length > 0 )    {        destFolder = sourceFolder;        alert(files.length);        for ( i = 0; i < files.length; i++)        {           sourceDoc = app.open(files[i]); // returns the document object           var docRef = sourceDoc;           //$.writeln(sourceDoc);           //$.writeln(i);           with (docRef) {             dieCutFind(docRef);             //var pdfSaveOptions = new PDFSaveOptions();             //sourceDoc.saveAs (destFolder ,  pdfSaveOptions);             //sourceDoc.close();         }
 }    }    else    {        alert( 'No matching files found' );    }

}
//////////////////////////////////////////////////////////////////////////
function dieCutFind(docRef){
    //'use strict';    var atomicBlackExists = "no";    var atomicRedExists = "no";    var redExists = "no";    var blueExists = "no";    var pinkExists = "no";    var orangeExists = "no";    //var doc = docRef;    var  doc = app.activeDocument;    if ( doc.pathItems.length > 0 ) {    thePaths = doc.pathItems;    numPaths = thePaths.length;        for ( i = 0; i < doc.pathItems.length; i++ ) {            pathArt = doc.pathItems[i];            var fillColor = pathArt.fillColor            var red = pathArt.strokeColor.red;            var green = pathArt.strokeColor.green;            var blue = pathArt.strokeColor.blue;            if(red !==undefined || green !==undefined || blue !==undefined){                if (fillColor !== undefined){                    if ( pathArt.parent.typename != "CompoundPathItem" && red== 201 && green == 11 && blue == 6) {                        //Atomic Red                        AtomicRed();                        pathArt.selected = true;                        pathArt.strokeColor = app.activeDocument.swatches.getByName("Atomic Red GCS-293").color;                        pathArt.selected = false;                    }                }            }        }    }
///////////////////////////////////////////////////////////////////////////    function AtomicRed() {        if (atomicRedExists !== "yes"){            atomicRedExists = "yes";            var doc = app.activeDocument;            // Create the new spot            var newSpot = doc.spots.add();            // Define the new color value            var newColor = new CMYKColor();            newColor.cyan = 14.29;            newColor.magenta = 100;            newColor.yellow = 100;            newColor.black = 5.01;            // of the new Spot's color. The spot color can then            // be applied to an art item like any other color.            newSpot.name = "Atomic Red GCS-293";            newSpot.colorType = ColorModel.SPOT;            newSpot.color = newColor;            var newSpotColor = new SpotColor();            newSpotColor.spot = newSpot;        }    };
};

Anti-aliasing Type Optimized/Art Optimized on PNG export

$
0
0

Hello there,

 

I'm modifying a javascript that makes an export of each layer contained in an Illustrator document and I want to specify the method used for anti-aliasing (either Type Optimized or Art Optimized). Similarly to the option under the "Image size" tab in the "Save for the Web" panel.

 

I didn't find any antiAliasingMethod property in the ExportOptionsPNG24 properties (only an antiAliasing property that accepts boolean). So I wonder if it is actually possible to do it through scripting?

 

Many thanks,

D

Drawing a rectangle of exact size of the artboard?

$
0
0

Has anybody written a JS script to to draw a rectangle on an active document which would be exact size as the document's artboard?

I find it very inaccurate and cumbersome trying to draw such rectangle by hand.

 

Please let me know where such JS code can be found. I have not done any Illustrator scripting beyond the "Hello world".

 

Thanks

franK

Render swatch Legend Script

$
0
0

I was wondering if someone could help me edit this Script Written by John Wundes. Its almost perfect for what i need, but my problem is the text box inside of the swatch when it is rendered is to small. Ideally i'd like it to be 90% the size of the actual swatch. I've copied and pasted it here if someone could help i'd greatly appreciate it. I tried asking John on his Blog a few times but i haven't gotten any response. Also i'd like to delete the CMYK values that it returns with just the PMS name only.

 

Render Swatch Legend v1.1 -- CS, CS2, CS3, CS4, CS5

//>=--------------------------------------

//

//  This script will generate a legend of rectangles for every swatch in the main swatches palette.

//  You can configure spacing and value display by configuring the variables at the top

//  of the script.

//   update: v1.1 now tests color brightness and renders a white label if the color is dark.

//>=--------------------------------------

// JS code (c) copyright: John Wundes ( john@wundes.com ) www.wundes.com

// copyright full text here:  http://www.wundes.com/js4ai/copyright.txt

//

//////////////////////////////////////////////////////////////////

    doc = activeDocument,

    swatches = doc.swatches,

    cols = 10,

    displayAs = "CMYKColor",  //or "RGBColor"

    rectRef=null,

    textRectRef=null,

    textRef=null,

    rgbColor=null,

    w=150;

    h=150,

    h_pad = 100,

    v_pad = 100,

    t_h_pad = 100,

    t_v_pad = 100,

    x=null,

    y=null,

    black = new GrayColor(),

    white = new GrayColor()

    ;

 

    black.gray = 100;

    white.gray = 0;

 

activeDocument.layers[0].locked= false;

var newGroup = doc.groupItems.add();

newGroup.name = "NewGroup";

newGroup.move( doc, ElementPlacement.PLACEATBEGINNING );

 

for(var c=2,len=swatches.length;c<len;c++)

{

        var swatchGroup = doc.groupItems.add();

        swatchGroup.name = swatches[c].name;

      

        x= (w+h_pad)*(c% cols);

        y=(h+v_pad)*(Math.floor((c+.01)/cols))*-1 ;

        rectRef = doc.pathItems.rectangle(y,x, w,h);

        rgbColor = swatches[c].color;

        rectRef.fillColor = rgbColor;

        textRectRef =  doc.pathItems.rectangle(y- t_v_pad,x+ t_h_pad, w-(2*t_h_pad),h-(2*t_v_pad));

        textRef = doc.textFrames.areaText(textRectRef);

        textRef.contents = swatches[c].name+ "\r" + getColorValues(swatches[c].color) ;

        textRef.textRange.fillColor = is_dark(swatches[c].color)? white : black;

        //

        rectRef.move( swatchGroup, ElementPlacement.PLACEATBEGINNING );    

        textRef.move( swatchGroup, ElementPlacement.PLACEATBEGINNING );

        swatchGroup.move( newGroup, ElementPlacement.PLACEATEND );

}

 

function getColorValues(color)

{

        if(color.typename)

        {

            switch(color.typename)

            {

                case "CMYKColor":

                    if(displayAs == "CMYKColor"){

                        return ([Math.floor(color.cyan),Math.floor(color.magenta),Math.floor(color.yellow),Math.floor(co lor.black)]);}

                    else

                    {

                        color.typename="RGBColor";

                        return  [Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue)] ;

                      

                    }

                case "RGBColor":

                  

                   if(displayAs == "CMYKColor"){

                        return rgb2cmyk(Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue));

                   }else

                    {

                        return  [Math.floor(color.red),Math.floor(color.green),Math.floor(color.blue)] ;

                    }

                case "GrayColor":

                    if(displayAs == "CMYKColor"){

                        return rgb2cmyk(Math.floor(color.gray),Math.floor(color.gray),Math.floor(color.gray));

                    }else{

                        return [Math.floor(color.gray),Math.floor(color.gray),Math.floor(color.gray)];

                    }

                case "SpotColor":

                    return getColorValues(color.spot.color);

            }   

        }

    return "Non Standard Color Type";

}

function rgb2cmyk (r,g,b) {

var computedC = 0;

var computedM = 0;

var computedY = 0;

var computedK = 0;

 

//remove spaces from input RGB values, convert to int

var r = parseInt( (''+r).replace(/\s/g,''),10 );

var g = parseInt( (''+g).replace(/\s/g,''),10 );

var b = parseInt( (''+b).replace(/\s/g,''),10 );

 

if ( r==null || g==null || b==null ||

     isNaN(r) || isNaN(g)|| isNaN(b) )

{

   alert ('Please enter numeric RGB values!');

   return;

}

if (r<0 || g<0 || b<0 || r>255 || g>255 || b>255) {

   alert ('RGB values must be in the range 0 to 255.');

   return;

}

 

// BLACK

if (r==0 && g==0 && b==0) {

  computedK = 1;

  return [0,0,0,1];

}

 

computedC = 1 - (r/255);

computedM = 1 - (g/255);

computedY = 1 - (b/255);

 

var minCMY = Math.min(computedC,

              Math.min(computedM,computedY));

computedC = (computedC - minCMY) / (1 - minCMY) ;

computedM = (computedM - minCMY) / (1 - minCMY) ;

computedY = (computedY - minCMY) / (1 - minCMY) ;

computedK = minCMY;

 

return [Math.floor(computedC*100),Math.floor(computedM*100),Math.floor(computedY*100),Math.floor (computedK*100)];

}

 

function is_dark(color){

       if(color.typename)

        {

            switch(color.typename)

            {

                case "CMYKColor":

                    return (color.black>50 || (color.cyan>50 &&  color.magenta>50)) ? true : false;

                case "RGBColor":

                    return (color.red<100  && color.green<100 ) ? true : false;

                case "GrayColor":

                    return color.gray > 50 ? true : false;

                case "SpotColor":

                    return is_dark(color.spot.color);

               

                return false;

            }

        }

}


ctrl (cmd) zero (page view centering)

$
0
0

With the valued assistance of a number of people on this forum I have

written a script which produces in Illustrator CS6 a layout that

is saved on an artboard slightly bigger than itself.

 

I have tried, using the listing worked between Carlos Canto

and the original enquirer, ScriptingRules, to focus the screen

on my artboard, but, I think, because the page origin details seem to

be variable between the files I am working with, what I get

sometimes is the amusing picture attached!  Not the end of the

world, but I'd like to do the job right if I can.

Screen Shot 2015-08-07 at 12.31.15.png

As I know as much as John Snow about ruler origins and so on, please would some

kind person advise me how to set my original parameters (?) correctly for the "ctrl zero"

to function as I'd hope it would.  If I start with a template file for my artwork that has

the origins in the right position for processing later, I'm hoping that will eradicate the problem.

 

This is the part of the script that sizes the artboard and tries to focus the screen:-

 

    app.executeMenuCommand('selectall');

    app.executeMenuCommand('group');

    var sel1=idoc.selection[0].width

    var sel2=idoc.selection[0].height

    var artboardsizer=idoc.layers.add()

    ab_width=(sel1+25)

    ab_height=(sel2+25)

   

    var artrect = idoc.pathItems.rectangle(0, 0, ab_width, ab_height); // create a disposable rectangle a bit bigger than the layout

   

   app.coordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM; 

   var abIdx = idoc.artboards.getActiveArtboardIndex(); 

   var actAbBds = idoc.artboards[abIdx].artboardRect; 

   var obj2move = artrect; 

   obj2move.position = new Array ((actAbBds[2]-actAbBds[0])/2 - obj2move.width/2, (actAbBds[3]-actAbBds[1])/2  + obj2move.height/2);

   // centre the disposable rectangle around the (already centered) layout

 

   app.executeMenuCommand('selectall'); 

   var indexAB = idoc.artboards.getActiveArtboardIndex();

 

    idoc.fitArtboardToSelectedArt(indexAB);  // sets desired size of artboard

    artboardsizer.remove(); // remove the disposable rectangle and the layer it was created on

  

    app.executeMenuCommand('deselectall');

   

    centerDocument();

 

    function centerDocument(){ // courtesy of Carlos Canto & Scripting Rules

 

     var artboardRef = idoc.artboards;

     idoc.pageOrigin = [0,0];

     idoc.rulerOrigin = [0,0];

     var screenwidth=artboardRef[0].artboardRect[2]-artboardRef[0].artboardRect[0];

     var screenheight=artboardRef[0].artboardRect[1]-artboardRef[0].artboardRect[3];

     idoc.activeView.centerPoint = [screenwidth/2,screenheight/2]

     if (screenwidth > screenheight)

     {

        var power = Math.pow((screenwidth/72),(-.962))

        var zoom = idoc.activeView.zoom = 20*power

     }else{

        var power = Math.pow((screenheight/72),(-.962))

        var zoom = idoc.activeView.zoom = 13*power

        }

   

}

 

    // var savethefile=false ----- next step is to save the file if it's OK .... only often I can't see anything!

ChangeSizesOfTextSelection.js

$
0
0

Illustrator version 10 installed with a sample script named ChangeSizesOfTextSelection.js. The script gradually changes the size of text.

 

The way it works is, you type some text in Illustrator, select it as an object, and run the script. The script incrementally decreases the size of the text until it gets to the center character, and then it incrementally increases the size of the text. This works in Illustrator 10. However, in Illustrator CS4 it doesn't do a thing. Below is a copy of the script.

 

I'd love it if someone could help out with a fix for the script so that it is usable in CS4.

-----------------------------------

 

// change size of paragraph text

 

//$.bp();

 

ChangeSize();

 

function ChangeSize()
{
    selectedItems = selection;
    // check to make sure something is selected.
    if (selectedItems.length == 0)
    {
        alert("Nothing is selected");
        return;
    }

 

    endIndex = selectedItems.length;

 

    for (index = 0; index < endIndex; index++)
    {
        pageObject = selectedItems[index];
        pageItemType = pageObject.typename;

 

        if (pageItemType == "TextArtItem")
        {
            // get the paragraphs from the selection.
            theTextRange = pageObject.textRange();
            paraTextRange = theTextRange.paragraphs;
            numParagraphs = paraTextRange.length;

 

            for (i = 0 ; i < numParagraphs ; i++)
            {
                aParagraph = paraTextRange[i];

 

                charTextRange = aParagraph.characters;
                charCount = charTextRange.length;

 

                if (charCount > 1)
                {
                    halfWay = Math.round(charCount/2);
                    fontSizeChanger = 36/halfWay;
                    currentFontSize = 48;
                    for (j = 0 ; j < halfWay-1; j++)
                    {
                        theChar = charTextRange[j];
                        theChar.size = currentFontSize;   
                        currentFontSize = currentFontSize - fontSizeChanger;
                    }
                   
                    for (j = halfWay; j < charCount ; j++)
                    {
                        theChar = charTextRange[j];
                        theChar.size = currentFontSize;
                        currentFontSize = currentFontSize + fontSizeChanger;
                    }
                }
            }
        }
    }
}

Looking for "Replace with Symbol" script

$
0
0

So I am trying to replace gps points with a symbol I have created. I have found blogs referencing a script that can replace selected items with symbols saved in the symbols panel, but I can't seem to find the actual script! If anyone knows where I can find JET_ReplaceWithSymbol.jsx or any other script that can do the same function, it would be greatly appreciated!

how to get all kind of vector file source ?

$
0
0

I'm stuck with this code, won't work with more than one file type at once.

 

files = sourceDir.getFiles("*.eps");

or

filesToProcess = sourceFolder.getFiles("*.ai");

 

 

We need source files to be : *.ai, *eps, *.wmf, *.dxg

 

Any help would be appreciate

thank

illustrator Spiral Shrinking/Growin text, scaling down/up on spiral path

$
0
0

First of all thanks in advance for anyone who may assist, or make this even possible...... (please contanct me ADAM    razo.ad1985     --->G.mail)

 

In dire need of expertise assistante. Years ago I DLded this script and got this working and older illustrator. NOW i have Illustrator CS6. I would love/like to TYpe text on a spiral path, then have the abitly for "user input(entering custom values)" as far as

Font Start Size/Pt = 80

Font End Size/Pt = 12

 

Just a concept......(maybe someone can do this)

 

desired spiral script.jpg

 

 

Then have illustrator(script) perform action and make my spiral big(80pt) at beggning of text and end at small(12pt) there for looking as FONT/TEXT Gradually shrinks in size from beggining(80pt) unitl end of font/text(12pt)

 

   similar to this(end result after srcipt ran and values entered)

spiralText Concept.jpg

 

I know there is an older script out there..... but if someone can perhaps undate this and modernize it with prompt for user input/customization interaction

         ChangeSizesOfTextSelection.js  ----->    http://forums.adobe.com/thread/447657

Viewing all 12845 articles
Browse latest View live


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