Illustrator Scripting :: Quick Syntax - Assign Name To UI Elements At Creation

Mar 5, 2014

In the extend script documentation it says you can assign a name to UI elements at creation like the example given below
 
dlg.btnPnl.cancelBtn = dlg.btnPnl.add('button', undefined, 'Cancel',
{name:'cancel'});
 
but when i do it like that, the bject's name comes out as undefined when accessed like this
dlg.btnPnl.cancelBtn.name
or like this:
dlg.btnPnl.children['name']
 
but adding the object then naming like this works-
 
dlg.btnPnl.cancelBtn.name = "Cancel";
 
I'm using illustrator cc and the extendscript guide for cs6 (couldn't find a newer one). Did the syntax change?

View 7 Replies


ADVERTISEMENT

Illustrator Scripting :: VB Syntax For Pathpoint Anchor

Nov 3, 2013

I am trying to (among other things) move a pathpoint that was added on a pathitem rectangle. The add of the pathitem goes well, the add of the pathpoint to the rectangle is fine, although when it it is "added" it picks some arbitrary position, hence the need to change the position, starting with the anchor.
 
I typically write in VB.NET (2013), as I am doing here. Using Illustrator CS6.
 
In VBScript, documentation shows:
    newPoint.Anchor = Array(75, 300)

Using that syntax, I get a pre-complier error in VB.NET, as "Array" is a type and can't be used as an expression.To create an inline array in VB.NET, I would normally use:

    newPoint.Anchor = {75, 300}
Using this syntax, I get a runtime COM-exception error.

View 3 Replies View Related

Illustrator Scripting :: Syntax To Check Pantone Color?

Aug 16, 2013

Syntax to check pantone color

eg (list.fillColor=="[CMYKColor]")

like that how to find pantone color and how to get the name of the pantone used

View 3 Replies View Related

Illustrator Scripting :: Saving Extendscript Syntax Color Pref?

Apr 4, 2012

is there a way to save extendscript color pref? I am trying to make it so I don't have to update them every time I change machines.
 
seems like they should be saved in defs.xml (under Contents > SharedSupport > Required), but this file doesn't seem to update after I make my changes.

View 6 Replies View Related

Illustrator Scripting :: Assign Default Colors To New Layer?

Aug 7, 2013

Is there a way to assign one of the default layer colors with javascript? like light blue, light red, or green.

View 3 Replies View Related

Illustrator Scripting :: Assign Values To Artboard And Save Within Document?

Oct 14, 2013

Is there any chance to assign values to an artboard?
 
I've experimented with “tags”, but they only work for pageItems. (if the item which includes the stored data is deleted, the data is also deleted)
 
It is simple data like v1=true, v2=false, … I want to assign. And it needs to be saved within the illustrator document.

View 4 Replies View Related

Paint Shop Pro :: Assign Creation Date To Picture In Batch Mode

Jan 13, 2012

I need to assign the same creation date to several pictures. On the modify file format (batch process) window there is the possibility to include date but I cannot find a method to modify the date only.

View 2 Replies View Related

Lightroom :: Scripting Subfolder Creation On Import?

Oct 16, 2013

I was wondering if there was a way to script the creation of multiple subfolders (ie: Selects, Masters, Output) when importing images into lightroom?  Right now the best I can come up with is to create a template folder with all of the subfolders already created and copy that template, rename it, and then import into the new folder.  I have poked around the programming guide for LR, but nothing immediately jumped out at me. 

View 3 Replies View Related

Illustrator Scripting :: How To Delete All Elements Colored Red In A Document

Sep 27, 2012

Any success creating a script that delete elements in Illustrator by its colors?

For example, I want to delete all elements that is colored Red in a document regardless what layer or artboard thay are in.

View 3 Replies View Related

Illustrator Scripting :: Accessing Elements Of A Page Item

Jan 6, 2014

I am working on a script that performs a series of things on all of the artwork in a document.  At one point, it needs to compare the fill color of every item to a sample color.  The problem is, the artwork is a collection of compound path items and path items.  When I look for pathItems[x]. fillColor, it works fine.  When I look for compoundPathItem[x].fillColor, it comes back undefined.  So, I've moved to looking at page items, but I seem to be unable to get to the internals on the page items.  If I have a compound path item, how would I address its properties from its parent page item?  I tried:
 
pageItem[x].compoundPathItem.pathItems[0].fillColor,
pageItems[x].fillColor,   & 
pageItems[x].compoundPathItem.fillColor. 

View 9 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 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 :: Assign X And Y Values To The Axis?

Mar 10, 2013

how to create line graph of y vs. x having to sets of values.
 
I know how to open the data window and bring the data from external source.
 
How do I assign x and y values to the axes?

View 4 Replies View Related

Photoshop Elements :: Assign Specific Place Tags?

Nov 11, 2013

In older versions of elements I could assign a specific place tag.  With elements 12 place tags appear to be referencing a MAP site.  I do not want to do this, I does not flow with how I used place tags in the past.

View 2 Replies View Related

Photoshop Elements :: Capture A Pattern And Assign It To Paintbrush

Nov 4, 2013

I am new to Photoshop Elements (Ver. 12 Mac) and I am still learning how to use it. I would like to select an area within a pic, let's say for argument sake the spots of a leopard,  capture the selection as a pattern (not just a straight single colour) and use it to paint that pattern with the paintbrush. Or, in the alternate, is there another way to copy an irregular pattern into another defined area of a pic?

View 4 Replies View Related

Illustrator :: Possible To Assign Gradients On Stroke By Pen Pressure

Jul 3, 2012

I was wondering with cs6 whether it would finally be possible to assign gradients on stroke by  pen pressure so you can do stuff like darken lines by pressure just like a real pencil for example.

View 4 Replies View Related

Illustrator :: Assign Profile To Untagged AI-File?

Jun 11, 2013

I have an issue when assigning a profile to an untagged ai-file. When doing so, and choosing "Save" (NOT "Save As") the file remains untagged when reopening it again.
 
Try it yourself: Create a new file in Illustrator, and select Edit > Assign Profile, and then choose "Dont Color Manage This Document". Choose Save As, select Ai-file, and in Illustrator Option choose NOT to Embed ICC Profile. Close the file, and reopen it again. Now you should be promted with a Missing Profile warming. Assign a profile, and Save** (NOT "Save As") the file. In my opinion the file should now be embedded with a profile, but when reopening the file, your again promed with a missing profile warning.
 
**This doesnt happen it you instead of "Save" choose "Save As", or if the ai-file you start wih doesn't miss the profile, but just has a wrong profile.

View 2 Replies View Related

Illustrator :: Way In CS6 To Assign Shortcuts To Palette Menus

Jan 29, 2013

Is there a way in CS6 to assign shortcuts to palette menus, or would I need something like QuicKeys?

View 5 Replies View Related

Illustrator :: How To Assign Keyboard Shortcut To A Script

May 23, 2013

I used to use MenuMaster, but they no longer support the latest OSX.
 
System preferences will not let you add shortcuts to Illustrator.
 
Illustrator doesn't seem to let you assign shortcuts to items in the script menu.

View 13 Replies View Related

Illustrator :: How To Change Colors Of Different Shapes At Same Time In Assign Tab

Sep 30, 2012

Under the edit tab I can click on the link option and change the colors together at the same time, though this does not work when on the Assign tab.
 
1. Is there a way to get it to change the colors of different shapes at the same time in the Assign tab?

2. The blue circle in the color wheel is clearly changing the hue of the blue, though with the other two arms, the circle with the black ring around it, when I drag it to darker hues it changes both the star and the polygon while the other circle only changes hues sometimes if I drag it somewhere completely different. How does this process work?.

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

Photoshop Elements :: Valid Size Not Available For This Creation

Nov 3, 2012

I am trying to create a photo collage, but a window pops up saying "Valid size not available for this creation". 

View 4 Replies View Related

Illustrator :: Edit Star After Creation

May 18, 2012

I've created a star with the star tool, but I wish to edit the number of points and the radius. It seems like once you create the shape, you can't go back and edit it, you have to create an entire new star. Seems silly that I would have to count how many points I had before and create an entire new star. It should be easy to just select the star and be able to add or subtract points and change the radius, just like when creating a new one, just off of the already created star. I have tried and can't seem to get it to work.

View 2 Replies View Related

Photoshop :: CS5 Versus Elements For Digital Art Creation And Layers?

Nov 24, 2013

I'm using Photoshop Elements 10.    If I want to use Photoshop with digital art (paintings mostly) and want to do touch up work and move elements of paintings into multiple layers, what extra features does Photoshop have that would benefit this application?
 
And what features are in Photoshop Creative Cloud, and CS6, versus CS5?   I do want to save some money and CS5 might be quite sufficient for my amateur uses.

View 3 Replies View Related

Photoshop Elements :: Greeting Card - Valid Size Not Available For This Creation

Dec 6, 2012

When I try and click on Create, Greeting Card, an error message pops up and says "Valid size not available for this creation." 

View 1 Replies View Related

Photoshop Elements :: How To Undo Quick Fix

Oct 24, 2012

How can you undo quick fix?

View 1 Replies View Related

Illustrator :: Preparing File For Print - Flattening Options And PDF Creation

Jan 26, 2014

A client has asked for an advert to be reset for magazine publication. For various reasons I am preparing it in Illustrator CC (mainly that I am more comfortable with Illustrator and it contains some reasonably complex effects and blending options). Anyway the time has come to send it to the printers and I have that heavy feeling that all is not well! The Publisher is asking for a PDF
 
There are two gradients within the artwork, the entire background is a photograph blending into a Black gradient (the body text sits in white over the black). To get the right effect the black gradient overlay has blending option - Multiply on it and being concerned it may not print propery or have transparency issues I chickened out and justt created one whole background image in PS (photo, gradient and all) and just imported it as a single jpeg back into Illustrator (ensuring I was working in CMYK).
 
But there is also an outer glow and drop shadow on some white text that sits over the Photograph. Do I need to flatten the image manually before creating the PDF? Or does the creation of the PDF do this for you? When I manually do this it displays correctly providing I tick Preserve Alpha transparency.
 
I work in Illustrator CC, the publisher has asked for Pass4Press Ver 9, but this preset is for Illustrator CS3. Are there no updates? and indeed does it really matter?

View 3 Replies View Related

Lightroom :: Corrupted Catalogue - Getting Syntax Error?

Dec 7, 2011

I am not much of a computer programmer, but an amateur photographer who just had the catalog with 1.5 years worth of my baby picture edits corrupted.  I am so upset.  I don't understand the SQlite program, I get a "syntax error" when trying to follow directions for fixixng it. 

View 2 Replies View Related

Photoshop Elements :: Quick Edge Maker In E11?

Oct 2, 2013

I am creating graphics like a scroll and need uneven edges without having to draw over everything (and wobbling) with lasoo tool. Is there another quick way to get an uneven effect?

View 2 Replies View Related

Photoshop Elements :: Any Quick Way To Brand Photos?

Dec 17, 2013

What is the quickest ways to "brand" my photos?

View 2 Replies View Related

Photoshop Elements :: Can't Find Quick View

Jan 14, 2014

In premiere_elements_12. I'm on lesson one.Iv'e loaded the clips, selected video editor but the bar at the top does not have quick view as an option so I clicked media and it took me to a different place.How do I go back and get to the view where quick is an option along with guided and expert.

View 1 Replies View Related







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