Illustrator Scripting :: Palette Disappears When Script Is Loaded?
Apr 23, 2013
When I run a script that brings up a palette window from ExtenScript toolkit the window behaves as I expect.But when I load the same script from illustrator (ctrl+12) the window does not show, or is instantly closed.
View 5 Replies
ADVERTISEMENT
Sep 27, 2012
What the maximum size xml file one can use when making data driven graphics in Illustrator?
I can successfully batch when I load a single variable library with about 100 datasets at one time but anything much larger than that in the same xml format gives me a “the incoming variable library is invalid” error. Elsewhere on this discussion forum I have seen answers say there is no limit to the size of the XML file. [URL]..... But my experience with Illustrator CS5 says otherwise.
1. If there is a maximum size either in file size, number of datasets, or number of variables/values, what the limit is.
2. I still need to create thousands of the final document I am creating - if the limit is close to 100 and I need to create many thousands - scripting or other methods to get this done?
View 8 Replies
View Related
Jun 10, 2013
Why is this so and what can I do?
I use several scripts in Illustrator. Some of them I use in this way: [URL] ....
Now I tried to built in two other scripts in the palette. In this scripts it is required to use special characters in variables. Standalone these scripts are work correct. Here is an simple example:
// exampleScript.jsx
var a = 'u201d'+" example "+'u201d';
alert(a)
I get this (correct) result:
But when I call this example script with bridge talk:
var scriptToLoad = new File(pathToScript + "/exampleScript.jsx");
var win = new Window('palette', 'own palette');
var btnSelect = win.add('button', undefined, 'example');
[Code] .....
Here is the same script and the wrong result:
View 9 Replies
View Related
Mar 7, 2014
Is there any functions and methods that dont work on a dialog window versus a palette?
I sk because i was playing with some UI stuff and i almost got everything working but it doesnt work as a dialog just palette.
View 3 Replies
View Related
Feb 8, 2013
I am writing a script for Illustrator. I created a palette with some buttons. I like to keep the palette open while working in Illustrator. The problem is, that the buttons don't work. For example, I have a delete button that should delete my active selection. When I change the Window Type from palette to dialog everything works correctly.
var w = new Window ("palette");
w.orientation = "row";
w.text = "Path Transform";
var f = File ("/C/icons/corner-tr.png");
var corner_tr = w.add ("iconbutton", undefined, f );
var corner_tl = w.add ("iconbutton", undefined, f );
var corner_br = w.add ("iconbutton", undefined, f );
var corner_bl = w.add ("iconbutton", undefined, f );
corner_tr.onClick = function () {
selectedObject[0].remove();
createLines();
}
View 1 Replies
View Related
Sep 15, 2012
on my Windows 7 home computer I am able to create UI progress bars and popup messages for my UI window and everything works just fine. Now, I come to work on the Macintosh and they don't work so well. In this question, I would like to learn if there is a technique to bring a palette to the front when one is created, such as for this progress bar example, on a Mac. The palette appears deactivated and in back for me. It is unseen most of the time because it appears in the center of the screen behind the window by default, and when I move my window we can see the palette but there is no progress bar going on.
As you can see in the screenshot, my main window is deactivated because I attempted to get the progress bar active by deactivating the main window, obviously not successful. I also set the palette to active, which did not work.And, as I have implied, on my home computer on Windows things appear just as expected with the progress bar working and palettes appearing in front and active.
View 4 Replies
View Related
Apr 3, 2012
For example I would like to make my images layer Green and my copy layer Red in my layers palette.
View 6 Replies
View Related
Jun 28, 2013
I've got a script that creates a palette that does some calculations when a button is pressed - but something in the script is failing silently. (this question is about how to debug things like this, not what the problem is in my specific script)
I've read the debugging tips in the Javascript tools guide, and based on that, re-opened the script in the Extendscript Toolkit instead of my usual text editor, chosen Illustrator, and hit the green 'Go' button. But, either I've missed something fundamental, or this isn't designed for palettes - the script runs in Illustrator, successfully pops up the palette, considers the job done, pats itself on the back, and closes the palette before I can begin debugging the button.
I'm looking for something where I can test the palette doing regular Illustrator work and see debug messages, set breakpoints, etc. I've tried the old-school approach of just filling the code with 'alert("blah")'s but it doesn't work - my code reaches an
" if(app.activeDocument.selection.length){ alert(1);} else {alert(2);} "
and doesn't alert either of them, or give any error message.
If I was working in a browser, I'd just plonk in a "console.log( app.activeDocument.selection )" and browse the object structure to see what's going on, is there any Illustrator equivalent?
View 1 Replies
View Related
Mar 12, 2013
I'm using a mac running illustrator cs5 and have about 4 thousand eps files (all vector paths filled with black) that need to be assigned colors randomly from a defined color palette (25 custom swatches). The first 2 swatches should be omitted- they aren't relevant to this task.
The script should open the file select all vector elements and assign a random color form the defined custom swatch palette then save the file and move on to the next.
View 22 Replies
View Related
Aug 12, 2013
I try to open mulitple ai files through palette dialog but it fails on Error:8702, there is no document. But if i change to var win = new Window ("dialog", "Batch"); the open file works well.
var txtSourceFolder = win.add("edittext",undefined);
var btnOk = win.add("button",undefined,"Run");
btnOk.onClick=function(){
try
[Code] ....
View 2 Replies
View Related
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
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Jul 1, 2013
I am currently using AI CS3 in my home office to design images. I have to download the images to a external harddrive, take down to my laser work station and upload the images onto my other pc and open them with inkscape to send it to my laser to cut out. Can AI be loaded on two computers? I know when I purchased AI it said one computer only, but it's not like I have a business where multiple designers will be using it.
View 2 Replies
View Related
Apr 16, 2013
i am having some actions(*.aia), those actions loaded in script via in illustrator.
View 1 Replies
View Related
Aug 9, 2013
I just loaded CS6 and the tools pallets are all in black? Whats the deal?
View 1 Replies
View Related
Sep 10, 2013
Error - ... ocalized resource files for this application could not be loaded. please repair or reinstall and try again.
I got the full version of CC yesterday and installed Photoshop, Illustrator and InDesign apps. I tested them all. They all worked. Today, I have tried to open Illustrator and I am getting the above error message. I'm using Windows 8 (64 bit).
View 1 Replies
View Related
Mar 23, 2013
in CS6 illustrator when we open file we get message " font Missing" but fonts are loaded.
View 3 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Apr 10, 2013
Let me just say I am reasonably new to Illustrator.
I've created a new art Brush: New brush>Art Brush> and made my selections and clicked ok. The brush then shows in the brush palette where I have access to use it but then when I close the document and reopen a new one the brush dissapears. Where did it go and how do I get it back??
Not sure where I am going wrong in saving the brush.
View 6 Replies
View Related
Aug 25, 2012
I have a drawing made up of black and transparent, super nested, compound paths. when I use the black selection tool to resize it, it disappears!!!
the first image is how it should look, and the second is what happens after resizing it.
View 2 Replies
View Related
Jul 2, 2013
I have an assignment for school where I am suppose to trace an eagle onto another layer. However the image disappears while I am trying to trace it. Is this some sort of setting that I need to change?
View 6 Replies
View Related
Oct 16, 2012
why do brush-windows from the library disappear when restarting illustrator (even when saving the workspace)? idon't want to use the "brushes" window becauseui can't switch through my brush libraries as comfortable..
View 1 Replies
View Related
Dec 3, 2008
I have a frustrating problem in CS3 that when writing a block of text, either with text tool or area text tool, that the cursor disappears. I need to see its new position after using the space bar or tab: ready to input the next piece of text.
It seems to be flashing some of the time if I click into the middle of the text block, but disappears where I want to continue it at the bottom of the text block?
View 4 Replies
View Related
Sep 11, 2013
I am using Illustrator CS5. I just got a new MacAir and was required to install Java6 (not sure if that's exactly what it was called) in order to use Illustrator. Now when I select the TYPE TOOL, it turns really light gray and then disappears whenever I move it onto the artboard. It worked before..
View 2 Replies
View Related
Mar 7, 2014
I'm running the latest Illustrator CC version on my Mac OSX 10.8.5 and it won't launch !
Basically, once you click the icon, the Illustrator logo comes up in the dock for a split second, and then disappears.
I have look at the Console Utilities and there are no Diagnostic Reports or System errors concerning Illustrator.
View 11 Replies
View Related
May 28, 2012
As you can see when I drag the appearance swatch to apply it to the text. The text disappears and only comes back when I change color.
View 2 Replies
View Related
Feb 12, 2014
I am having a problem that may be a simple solve (but not for me). My image disappears after applying a rectangle to it. I have tried "bring to front" and don't know what else to try.
View 1 Replies
View Related
Jul 31, 2012
I created a circle and positioned a line segment on top of it. When I preview or save the image, the line segment doesn't appear. Here is an illustration of the problem.
View 9 Replies
View Related
Jun 12, 2012
When applying certain SVG filters to a group that contains an object with an opacity mask, that masked object disappears. AI_Dilate_3, for example.
View 1 Replies
View Related
Feb 18, 2014
I often need to create icons at small sizes 6-12 (pts) so that it's easy to copy and paste into InDesign. On small corner areas, the widget disappears. When I scale the vector drawing up, they appear. I can work on them larger and just scale them back down in but was wondering if there was a setting or something to get them to show at the smaller sizes.
View 3 Replies
View Related
Feb 24, 2014
Whenever I maximize a document in Illu. CS6 it overrides the application menu! It simply covers my whole screen making it impossible to reach my menues unless i drag the documents corners to make it smaller or click the minimize icon.
View 12 Replies
View Related