Illustrator Scripting :: Changing Opacity Of Text?

Nov 25, 2013

I'm trying to change/access the opacity of a text object (Illustrator CC). In the documents, I found that it's represented by a text frame object, but it doesn't have opacity property. Text range and character attributes don't have it either, so I'm wondering: is there any way of accessing/altering the opacity of a text object using Javascript?

View 5 Replies


ADVERTISEMENT

Illustrator Scripting :: Changing Text From Helvetica To Arial With JavaScript

Mar 11, 2013

I’m working with PDF files in illustrator and whenever the file uses Helvetica I have to change the font to Arial. This gets old when working with hundreds of illustrations. How I would go about changing all text that uses Helvetica bold to Arial bold and Helvetica Roman to Arial?
 
Would I loop through all the text frames and get the value of the font and use that value to change them or is there a more global way to go about this?

View 15 Replies View Related

Illustrator Scripting :: Changing Line Of Text In Multiple AI Files

Apr 5, 2013

I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002... etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?

View 1 Replies View Related

Illustrator Scripting :: Changing Selected Text Color With JavaScript

Feb 25, 2013

I want to change my selected text to a different cmyk color using javascript. I have tried and I do not know what is missing or what I am doing wrong.
 
if ( app.documents.length > 0 ) {
newCMYKColor = new CMYKColor();
newCMYKColor.black = 0;

[Code]...

View 4 Replies View Related

Illustrator Scripting :: JavaScript Create Opacity Mask?

Aug 14, 2013

I am looking for a way to create an opacity mask through JavaScript. My program has the correct items selected, I just can't seem to find any documentation about creating an opacity mask.  If I run the program as is, I just need to click one button ( "Make Mask") and the desired process is completed. Of course I would love to find a way to do this programmatically. 
 
If I cannot access Opacity mask, is there a way to manually do this through grouping and blending or something?

View 6 Replies View Related

Illustrator Scripting :: How To Resize Or Translate Opacity Mask Along With Items

Jul 25, 2013

I'm trying to resize a opacity mask by doing
 
transMaskItem.resize(
  10, //scaleX,
  10, //scaleY,
  true, //[,changePositions]
  true, //[,changeFillPatterns]
  true, //[,changeFillGradients]
  true, //[,changeStrokePattern]
  0.1, //[,changeLineWidths]
)
 
This resizes the item, but it does not resize the item inside it. I tried similar command with the translation command
 
transMaskItem.translate(
100, //([deltaX]
100. //[,deltaY]
True, //[,transformObjects]
True, //[,transformFillPatterns]
True, //[,transformFillGradients]
True, //[,transformStrokePatterns])
 
and similar thing happened. The item gets moved, but the object inside it doesn't.
 
How do I resize or translate an opacity mask along with the items inside it?

View 5 Replies View Related

After Effects :: Opacity Level Changing When Exporting Text With Alpha

Apr 10, 2014

I have animated text where some words are black at 50% opacity and some words are white at full opacity.  They are on a textured background.  I need to give the other editors a version of the text married to the background and one that is just text with an alpha.  When I export it and bring it into Premiere, the "married" version looks fine, but the black in the version of the text with alpha appears more transparent.  I can fix this by changing the blend mode to Hard Light or Luminosity, but this alters the color of the white text slightly (and I should note that the blend mode in AE was normal).  I can of course work around this by exporting my black and white text separately.
 
I am working on AE CC (ver12) and Premiere CC (ver7)

View 4 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

Edge Animate CC :: How To Click To Stop The New Text And Images From Changing Opacity Immediately

Dec 10, 2013

Having some trouble with the oppacity on my projects. As you can see from the screenshot, I've clearly clicked something because any text or images that I try to add to my project and set the oppacity at 0% - to then build over a few seconds to 100%, will not do this.Yet previous elements that I've added will.
 
Is there something I need to click to stop the new text and images from changing oppacity immediately. I want them to build over time - I can see that the added keyframe looks different also.

View 3 Replies View Related

Illustrator Scripting :: Changing Color Of A Selection To HEX

Sep 6, 2012

I'm new to illustrator scripting (but not to javascript or programming. I have an AI file that has multiple layers. each layer has several items that are supposed to be of same color. I have an array of HEX values.

I would like to loop over all items in a single layer, select them and change their color to some given HEX. Once that works, I will run on all HEX entries in array and save each variation in a separate PNG file.
 
For the first part i wrote some script (see below), but i do not see any change in the file after i run the script. No errors and no change. I run the script once i select all items in a specific layer.
 
My code:

function hexToRgb(hex) {
    var result = /^#?([a-fd]{2})([a-fd]{2})([a-fd]{2})$/i.exec(hex);
    return result ? {
        r: parseInt(result[1], 16),
        g: parseInt(result[2], 16),
        b: parseInt(result[3], 16)

[Code] ......

View 3 Replies View Related

Illustrator Scripting :: Swap Symbol Instance By Changing Its Name?

Aug 11, 2012

I'm trying to swap symbols in situ by changing the 'name' property of the symbol instance.
 
My rudimentary script can find the existing symbol name (for me, that's a small triumph!). The Illustrator document has two symbols in the Symbols panel, 'blue_square' and 'red_circle'. I run the script with an instance of 'blue_square' (and nothing else) on the page, and try to change the name to 'red_circle':
 
var docRef = activeDocument; 
var symbolitem = docRef.symbolItems[0]
 var symbolname = symbolitem.symbol.name; 
var newname = "red_circle";
symbolitem.selected = true; 
// this next line causes the problem:
symbolitem.symbol.name = newname;
 
This causes an error - 'the name is in use'.

View 14 Replies View Related

Illustrator Scripting :: Changing Colors Multiple Files?

Feb 6, 2014

I have about 300+ product labels that are in Illustrator, and some of them have an incorrect rich black color swatch. What I have been doing is going through and changing the color pallette to change them manually. Essentially going to the instance of black and changing them to regular black.
 
Is there any sort of script that can do this? The files are in CMYK.
 
Otherwise I have a lot of monotonous file editing to do.

View 4 Replies View Related

Illustrator Scripting :: Changing Angle Of Linear Gradient Fill

Feb 4, 2013

Suppose I have an object filled with a linear gradient. This object is the only selected. I just would like to change the angle of the gradient to 25 degrees. So I think I could do:
 
var doc = app.activeDocument
alert(doc.selection[0].fillColor.angle) // the result is the exact angle of the gradient fill of the selected object. Suppose 12 degrees.
 
//now the try to change:
doc.selection[0].fillColor.angle = 25.0
 
No errors are found by the Extended Script Toolkit..BUT...it does not change anything. As Illustrator reference manual does not say this property is read only, I think I could write.

View 2 Replies View Related

Illustrator Scripting :: Text Frames To Be Converted As Flash Text

Oct 17, 2012

I am working on a project which needs..Text frames to be converted as flash text >property changed to dynamic text > writing instance name “_txt”.so how can i write scripting on above process.

View 5 Replies View Related

Illustrator Scripting :: Adding Text To A Text Frame?

Mar 19, 2013

I have yet another question. I can see the text in a text frame with a script like this,
 
var doc = app.activeDocument;
var myTextFrames = doc.textFrames[0];
var myTF_Content = myTextFrames.contents; // this will return the string inside the text frame
alert(myTF_Content);
 
but how do I add some text to the beginning of that text? lets say that this is my textFrame[0] = "this is a simple test string".what is the proper way to add text like the number one and a period to the beginning?

View 3 Replies View Related

Illustrator Scripting :: Deleting Text From Text Frame

Apr 8, 2013

What is the best way or anyway to remove text from a text frame? Say if you want to remove anything in () in a text frame or any * symbols.
 
52(one on both sides) //you have this in a text frame
 
52 // and you want to change it to this by deleting (.)
 
or
 
40* //you have this in a text frame
 
40 // and you want to change it to this by deleting the *

View 25 Replies View Related

Photoshop :: Changing Opacity In Selection On Layer Without Changing Entire Layer

Aug 21, 2013

I've been using Photoshop CS2 for several years to enhance my photographs, but just now have encountered something simple I cannot find out how to do.   I have on the background layer a picture of a room interior with the exposure set mostly for the open window, but the rest of the room is very dark.  On the only other layer, the upper one, I have the same shot exposed correctly for the room, which overexposes the window area.  The upper and lower layers are perfectly superimposed, and the upper layer is at 100% opacity. 

I have selected the window on the upper layer and want to change the selected area's opacity to blend properly with the window on the bottom layer without changing opacity of the rest of the layer.  No matter what I do, changing opacity seems to affect only the entire layer, and I haven't figured out how to isolate the selected area for the opacity change.
 
I can cut the selection to reveal the darker window on the bottom layer, but this doesn't give me the flexibility I need to balance the two exposures. An opacity change would be ideal.

View 2 Replies View Related

Paint.NET :: Changing Opacity When Cloning?

Oct 11, 2011

Sometimes when I am cloning a portion of a single layer, I want to make the copied pixels less opaque. How to I set the clone stamp to make the material I am copying more transparent.?

View 6 Replies View Related

Illustrator Scripting :: How To Tell With JavaScript That The Text Was Set To Overprint

Feb 24, 2012

If I were to select some text, then checkmark 'Overprint Fill' in the 'Attributes' pane, is there a way to tell with JavaScript that the text was set to overprint?
 
I've been experimenting with this code in ExtendScript, but it keeps returning false:
 
var doc = app.activeDocument;
$.write(doc.textFrames[0].textPath.fillOverprint + '
');

View 3 Replies View Related

Illustrator Scripting :: Split Text Into Layers?

Jun 30, 2013

script that is able to do the same as this photoshop one [URL] ...., I would use that one in photoshop but its not working in CS6.
 
find a script that will seperate the text into layers ready for export to After Effects to be used in Kinetic Typography  pieces.

View 3 Replies View Related

Illustrator Scripting :: Evaluate Text Frames

Mar 23, 2013

I want to evaluate text frames for their x axis and if they are the same shift them slightly because of adobes irritating habit of combining the text frames when it makes a PDF. I have been able to evaluate, but not exactly like I want to but I know it can be done...
 
var mydoc = app.activeDocument;var mytext = mydoc.textFrames;var allX_Vaues = new Array();for (i =0; i < mytext.length; i++) {var mytextFrames = mydoc.textFrames[i];var theMatrix = mytextFrames.matrix;allX_Vaues.push(theMatrix.mValueTX)var firstEval = allX_Vaues//$.writeln(theMatrix.mValueA+"
"+theMatrix.mValueB+"
"+theMatrix.mV alueC+"
"+theMatrix.mValueD+"
"+theMatrix.mValueTX+"
"+theMatrix.mV alueTY);//alert(allX_Vaues);}//alert(allX_Vaues[1]);for (i =0; i < allX_Vaues.length; i++) {if (allX_Vaues[i] == allX_Vaues[i + 1] ) {alert(allX_Vaues[i] + " and " + allX_Vaues[i +1] + " are the same");}else{alert(allX_Vaues[i] + " and " + allX_Vaues[i +1] + " are different");} } 
[code]....

my problem is when I try to move text frames. It flies way of the page. I just want to move the text a slight amount and concatenate is the only way I have been successful. my question is: Is there a better way and why is my text flying so far of the page?

View 11 Replies View Related

Illustrator Scripting :: Placing A Text File Into CC

Jul 6, 2013

how to place an image into illustrator via scripting with javascript, however I am having difficulties with text files. My code is:
 
var myDoc = app.activeDocument;
var Layer1 = myDoc.layers[0];
function getTextFile() {
    return File.openDialog('Please select the text file to be imported:', undefined, undefined);
}
var myTextfile = getTextFile();
var myPlacedFile = Layer1.placedItems.add();
myPlacedFile.file = myTextfile;
 
But when I select a text file, it says it is an unsupported format. I'm assuming it has something to do with the extra options that come with importing a text document, specific for .txt and .doc for example.
 
For what it's worth I was working on an alternate method by read() ing in the contents of the .txt file and setting them equal to the contents of a textFrame, however it imported the text without carriage returns/newlines and I haven't been able to result that issue.

View 3 Replies View Related

Illustrator Scripting :: How To Align Text With A Shape

Aug 14, 2012

How i can align vertical center and horizontal center a single line text to a shape (in vbs) ?

View 1 Replies View Related

Illustrator Scripting :: How To Preview Text In Many Fonts

Mar 20, 2013

I'm wondering if there is a way for me to only need to create one sample text and get multiple previews of different fonts (either some of my favorites, or just all of them). If not, perhaps there is a way to make a script where the text makes multiple copies of itself and changes the font.

View 1 Replies View Related

Illustrator Scripting :: Delete Some Text From Layer

Jan 3, 2013

what is the script to delete some letters from layer?For ex. I've "Layer XYZ" and I want "Layer XY".

View 9 Replies View Related

Illustrator Scripting :: How To Import Text Automatically

Sep 26, 2013

Have to enter a lot of text snippets into illustrator cs4 every day, would love to make my live easier.
 
I'm trying to figure out how to import text to illustrator automaticly.
 
I have olny a few parameters: the text, what font to use, the size of the text (the text width and length in mm as if the text would be converted to outlines, needs to be exactly the right size) and the coulor.
 
Usually its one line of text, sometimes more lines of wich i have the widht and length of the complete block of text
 
The parameters could be in a cvs-file or something like that,  ideally all texts would be imported in one file but it could be seperate files
 
Texts should be converted to outlines and saved as AI version 3
 
Is it possible to do this?

View 1 Replies View Related

Illustrator Scripting :: How To Use Imported Text As A Number

May 13, 2013

Is it possible to use an imported text as a number? I would like to import a .txt tab formatted file containing some values (ex: 22.5; 50.00; 150.00, etc.), and I want to treat those values as numbers in my script. Is this possible?

View 2 Replies View Related

Illustrator Scripting :: Getting AI Script For Arcing Text

Mar 30, 2012

i am in need of ai script for arcing text

View 1 Replies View Related

Illustrator Scripting :: Copy Text For Filename?

May 29, 2013

I've looked around for this but haven't found much. I have a server with thousands of print proof sheets, and since the beginning, long before me, the files were saved with verbal descriptive names. It would be a lot better if they were saved according to the PO number. All the proof sheets have a po number listed in pretty much the same place on the sheet... is there a way to copy that PO number from the field within the pdf, and save the file to a new folder using that number as the filename using a script?

View 28 Replies View Related

Illustrator Scripting :: CS6 - Unview Letters In Text

Apr 12, 2013

I need a script for Illustrator CS6, that...
 
1. Opens a dialog where I enter a letter, like "A".
 
2. Script then check the current layer for text with this letter, and "unview" (opacity = 0 or color=white), all other letters on this layer. So that the layer will only show "A", or "a" and no other type of letter. The script needs to check all text objects, some "a"s will be in objects consisting of several other letters also, like sentances. Script needs to find the letter in these and mute all others.

View 15 Replies View Related

Illustrator Scripting :: Importing Text From TXT File?

Oct 17, 2013

I'm looking for a way to import text from a .txt file but I'm totally lost.

View 2 Replies View Related







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