Illustrator Scripting :: Divide All TextFrames In One Character Per TextFrame?

Jan 24, 2011

How to divide all textFrames in one-character-per-textFrame?
 
Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".

View 30 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Set Tabs In TextFrames With TabStops

Oct 31, 2012

Javascript syntax, or script, that sets tabStops and positions them.
 
I can't get it working.

View 12 Replies View Related

Illustrator Scripting :: Any Way To Select TextFrames That Only Have A Fill Color

Mar 11, 2013

I have a script that will select text Frames, but I have come into a situation where I need to exclude any text frames that do not have a fill color. I do not see a filled Boolean property for character attributes or text Frames. 
 
This is what I used to select all text on all visible and unlocked layers. I dont see a way to exclude textframes that have no fillcolor.
 
if (app.documents.length > 0 ) { 
var doc = app.activeDocument;   
var numTextFrames = 0;   
for (  i = 0; i < doc.textFrames.length; i++ ) {
try { 
textArtRange = doc.textFrames[i];
textArtRange.selected = true;
} catch (e) {}        }    }

View 6 Replies View Related

Illustrator Scripting :: How To Fill Gradient Color In Textframe

Sep 3, 2013

I am working with scripting in Ai, fill gradient color in TextFrame. I search in this forum but the other topics fill color to path or line. For now, I can make a gradient color, but I don't know how to apply it to textframe.

View 6 Replies View Related

Illustrator Scripting :: How To Read Text File Into TextFrame

Feb 23, 2012

I'm trying to read a text file into a textFrame.  It reads in but is not including linefeeds so it's just one big long line of text.  I'm using the following code to read the file.  I attempted to insert a character after each readln() but that didn't work.  I also tried creating a variable that the readln() was stuffed into before setting the textFrame.contents to the variable, but that didn't work either. I'm stumped.
 
while (! notesDoc.eof) {
noteTextRef.contents += notesDoc.readln();}

View 2 Replies View Related

Illustrator Scripting :: How To Place Textframe Central To Artboard

Apr 15, 2012

This is my very first attempt at a script: 
 
* this script will prompt  the user for a file name and location and then save the current file as a .pdf with secure save options*/
var curDoc = app.activeDocument;
var destName = prompt ("Enter a Filename Daniel", "", "Save With  Security");
var destFolder = Folder.selectDialog('Select which folder to save to :');
saveFileToPDF(destFolder+ '/' + destName); // not sure if i need this here ?

[Code] .......
 
i can do the math of (artboard width)-(text width) / 2 is start point of text but how do i find out the text width and the artboard width?

View 11 Replies View Related

Illustrator Scripting :: How To Get Contents Of A Specific TextFrame Within First Group On Layer

Sep 11, 2012

I think I might be doing this wrong, I am trying to get contents of a specific textFrame within first group on layer called "page numbers"
 
It seems to work, but is a bit sketchy, the documentation indicates textFrame is all the text frames in a document, and that textFrameItem should be the specific one within collections of groups etc, maybe I am misunderstanding. this is what I am using:
 
var existingPageNumbers = app.activeDocument.layers.getByName('page numbers').groupItems[0].textFrames[0].contents;
 
is this correct approach...?

View 1 Replies View Related

Illustrator Scripting :: How To Resize TextFrame While Also Resizing Its Parent (a Groupitem)

Oct 27, 2013

I'm trying to find the smallest textframe within a group and then matching that textframe font size to the minimum size allowed for printing. Everything else works, except I can't figure out how to resize the textframe while also resizing its parent, the group.
  
#target illustrator
docRef = app.activeDocument;
gpRef = docRef.groupItems[0];
var gpHeight = gpRef.height;

[Code]....

I'm not even sure if I'm going about this the right way. Hoping a fresh set of eyes can take a look

View 3 Replies View Related

Illustrator Scripting :: How To Find Out Textframe Contains Stroke Color (or) Fillcolor

Jul 5, 2011

How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Any sample.

View 5 Replies View Related

Illustrator Scripting :: JavaScript To Send Selected TextFrame To Current Layer?

Feb 20, 2013

Is there a way to send a selected textFrame item to a layer using javascript?
 
I don't mind if it is send to current layer or some other way to accomplish the task.
 
(Using Adobe Illustrator CS4)

View 5 Replies View Related

Illustrator Scripting :: Divide Characters In Text Frame

Oct 23, 2012

I'm sending this message regarding this link : URL....Just need a favor with all my respect to you and i think you will not let me down asking u for 2 script to divide characters in the textbox like the following:
 
1st : (TEXT FRAME) : Each letter alone and delete the space character .. with out moving any character from it's position
2nd : (TEXT FRAME) : Each word alone and keep the space character
 
"both in multiple text frame".

View 5 Replies View Related

Illustrator Scripting :: Get Swatch Name For Character?

Feb 28, 2012

I'm needing to loop through each character of a text frame and check the color of each character.  Is it possible to get the swatch name of each character?  Or can you only get the red, green, blue values?
 
I've been experimenting with:
 
app.activeDocument.textFrames[0].characters[3].characterAttributes.fil lColor.typename;
// Returns SpotColor
 
But I can't figure out how to get the swatch name of the character this way?

View 2 Replies View Related

Illustrator Scripting :: How To Easily Find A Character If Its Attribute Different From Others

Apr 22, 2013

How can I easily find a character if its attribute is different from others? There might be some easier way than compare it one by one.

View 2 Replies View Related

Illustrator Scripting :: How To Set Character Attributes On A Range Of Characters At Once

Jan 11, 2014

Illustrator Version CS3-CC
Preferred scripting: Visual Basic (VBScript)
 
In the Adobe Illustrator CS5 Scripting Reference (VBScript), I see the following code for setting character attributes.
 
iCount = textRef.Characters.Count
i = 1
Dim charRef
Do While (i < (iCount + 1))
dSize = dSize * 1.1
textRef.TextRange.Characters(i).CharacterAttributes.HorizontalScale = dSize
textRef.TextRange.Characters(i).CharacterAttributes.VerticalScale = dSize
i = i + 1
Loop
 
Is there a way to set character attributes on a range of characters at once?
 
Iterating through the characters one by one is really slow, especially in higher versions of Illustrator (like CS6).
 
I want to be able to set character attributes, for example, from the third character to the sixth character of a paragraph textrange.
 
Basically, I want to do something like itembyrange in InDesign scripting.

View 3 Replies View Related

Illustrator SDK :: CS5 - Change Textframe Into a Given Curve?

Jan 20, 2012

I have a textbox having some text and a shape like  a curve given below. The text should  be tranformed according to the shape pattern choosen.

Following figure shows what exaclty I want to do.
 
I have a curve, and textbox as shown in LHS of figure and I want  output as RHS of figure.

View 4 Replies View Related

Illustrator SDK :: How To Set The Desired Font To Selected Text In Textframe

Dec 2, 2011

I want to change the font(let's say Times New Roman) of selected text in textframe when I click on  menu-item of my plug-in. I went through the Adobe Text Engine documentation and  tried some code for setting font but failed. I don't see any member function in IFont class to set desired font, so unable to move forward. see the code. I would like to know one more thing that how can we set a particular font for a textframe?
 
TextRangesRef rangesRef = NULL;
result = sAIDocument->GetTextSelection(&rangesRef);
aisdk::check_ai_error(result);
ITextRanges ranges(rangesRef);

[Code].....

View 3 Replies View Related

Illustrator :: How To Use Divide In Pathfinder

Jul 26, 2012

I am trying to make the olympic rings, but when I try to divide the rings using the pathfinder, nothing happens. It just ignores any klick on the pathfinder tool. Is this a new feature of CS6 or is it just a bug?

View 2 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

View 8 Replies View Related

Illustrator :: Divide AND Ungroup In Action?

Nov 21, 2013

In CS5, I created a very handy action that allowed me to, with two paths selected, Divide, Ungroup, and Deselect, resulting in the divided paths without having to do each step manually.
 
In CS6, for some reason this is no longer possible-- if I try to record the same action, after the divide, everything is automatically deselected and I get a "The object "Ungroup" is not currently available" error. Very frustrating that the new version is more troublesome to use!!
 
I KNOW that it's possible to do this because I was somehow able to fudge it at one point and get this action to work. But I'm not sure what happened-- maybe a step was deleted in my action or something-- but one day it just stopped working. This action is basically THE function I use most in Illustrator given the way I work, and while it's not a huge step, having to manually reclick, ungroup, and deselect is a huge inconvenience.

View 2 Replies View Related

Illustrator :: Divide A Letter Into Three Different Colors?

Jun 30, 2013

Is it possible to divide a letter into three different colors? That is top one color, middle another color and bottom a different color.

View 5 Replies View Related

Illustrator :: How To Divide Brush Strokes

May 27, 2013

I have no problem dividing objects using the "divide" tool in the Pathfinder palette, but I was wondering if there was a way to divide brush strokes?
 
For example, let's say you wanted to paint three brush strokes right next to each other, but not overlapping. Is there a way to select all three strokes and then divide them so no one stroke resides over another, they would be completely separate of each other.

View 11 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

Illustrator :: Divide Arc At Specified Length (not Equal Sections)

Jun 20, 2013

Can't figure the math... or find a script.

View 11 Replies View Related

Illustrator :: How To Divide A Circle Into Equal Parts

Jun 29, 2013

how to devide a circle into equal parts

View 4 Replies View Related

Illustrator :: How To Slice And Divide A PDF To Use As HTML Mailer

Feb 4, 2014

I have a high res PDF which I need to divide and slice to use as an HTML mailer, which is the quickest way to achieve this?

View 2 Replies View Related

Illustrator :: Divide A Line Into Equal Sections

Aug 26, 2009

How can I divide a line into equal segments in Illustrator? This is computer software, right? Shouldn't a computer be able to figure how to segment an arbitrary line? I tried turning the line into a sliced object and dividing that, but it didn't seem to work. Pathfinder only works on two or more objects.

View 17 Replies View Related

Illustrator :: How To Divide Compound Path Into Segments

Jul 13, 2013

This yellow donut is a compound path. I'd like to divide it into 10 segments, in the places where the black lines cross it.

View 5 Replies View Related

Illustrator :: CS6 Mac Character Box Scroll?

Aug 8, 2012

Using the new caracter font scroll feature in CS6. When scrolling through fonts by highlighting in the carater box and watching my type change from font to font, it will come to a stop at certain fonts.

View 3 Replies View Related

Illustrator :: Non-hex Character In Hex String?

Mar 21, 2013

I'm getting this messsage when I try to open an Illustrator file: "Acrobat PDF file format is having difficulties. Non-hex character in a string."
 
I', using illustrator CS6 and I need my file opened..!

View 1 Replies View Related

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

Illustrator :: Character Drop Down Inoperative?

May 17, 2013

I cannot change the font on the character pallet.
 
If I click on the font or drop down "set the font family" on the character menu, nothing happens.
 
If I type in the entire font name, I can switch font, or if I go to Type>Font I can change fonts. 
 
But the actual character pallet seems inoperative.
 
Windows XP (service pack 3)
Illustrator CS6
 
The pallet worked for a short time when I updated from 16 to 16.0.3  (32 bit) but after an hour or so stopped working again.
 
I've never ran into this at home (windows 7 & 8) just at work.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved