Illustrator Scripting :: Adding Graphic Styles Using VBA?
Apr 7, 2012
How would I go about applying graphic styles to a path using VBA? I would imagine the following line is wrong because it doesn't work.
idoc.GraphicStyles("02-S").ApplyTo (isquare2)
View 5 Replies
ADVERTISEMENT
Nov 14, 2012
I'm on a Mac and have Illustrator CS6. Whenever I try to open up Graphic Styles, it freezes.I deleted preferences and even did the disk permissions repair, then restarted. Nothing. I tried to create multiple types of documents too (print, web, etc), but whenever I try to open styles after creating that document, it freezes.
These are the vanilla default graphic styles..It might freeze for other tools, but I'm not sure, haven't gotten that far in the investigation.
View 2 Replies
View Related
Nov 18, 2012
I'm designing a game for iPad and am using Illustrator CS3 to create the graphics. I created lots of card sized graphics and gave them all the 'RGB Parchment' graphic style which comes with Illustrator.
The document in the picture is (part of) an illustrator file that I created these cards in. If I take one out to another document to edit it and save it as a .png - it comes back different. As you can see in the picture, in the centre are two mock ups I made for a card. The left is an illustrator file 'placed' in the document and the right is the same file but exported as a .png and then placed in.
The .png keeps the transparencies but the shadow is completely different, it's a horrible brown as well as the shape being slightly different and the quality quite low. I sent the whole mock up picture (which is much bigger) to my iPad and I can still see the lower quality in the right, .png card.
If I want to bring graphics into some software to build the app I can't bring in illustrator files so I cant to create them as .pngs but when they're so different / low quality I don't know what to do. I just want to be able to use that 'RGB Parchement' graphic style and not have it changed so much when I export it.
View 13 Replies
View Related
Oct 25, 2012
With the latest Illustrator update through Creative Cloud, every time I try to open the Graphic Styles panel my Illustrator gets the spinning beach ball on the Mac (OS 10.7.5) and I have to force quit.
View 5 Replies
View Related
Jun 16, 2012
I make a graphic style with more than one stroke. I choose the brush tool. I click the graphic style. I draw a line. only one of the strokes is applied to the path. I have to select the path again, and then click the graphic style for it to apply."New art has basic appearance" is unchecked.It's time consuming and frustrating. And it takes the punch out of one of the better additions to the program.
View 7 Replies
View Related
Jun 2, 2013
I opened lots of graphic styles in one document, they all arrived in the same windo for once (to which I haven't been able to replicate since). How to organise your graphic styles? I've created a few in one document and I need to export to another, but I use these styles often, so I was thinking of saving them to my own styles folder, but don't know what to do?
View 7 Replies
View Related
Aug 9, 2012
ive just got illustrator and it crashes everytime i click it?
View 3 Replies
View Related
Feb 4, 2013
Scenario: Start with a named graphic style of say 2 pt black stroke/no fill called '2.0 pt'. Create an object using said style, copy and paste it, every time I do this I get '2.0 pt 1', '2.0 pt 2', '2.0 pt 3' etc. insanely populating my graphic styles panel.
This is with CS6 (16.0.4) running on Mac OS X.6.8.
View 4 Replies
View Related
Feb 18, 2014
When I use a numeric scale from the scale dialog box, Illustrator will not scale the the strokes and patterns attibutes applied to the layer via a graphic style. Has this always been the case, or is this a new CC feature? You know the ones that keep popping up as I'm trying to get my work done. I have to calculate the scale of all my patterns and strokes MANUALLY?
View 6 Replies
View Related
Sep 18, 2013
I'm working on a collaborative process that involves taking a .dxf from autocad and editing it graphically in illustrator. The .dxf file needs to be updated periodically and we have a system where we update the .dxf, open it in illustrator (CS6) and then copy/paste the updated elements into the graphic document in progress. When pasted, the new paths sometimes retain attributes (like stroke color) from the .dxf file, beneath the graphic style attributes of the layer the new work was pasted into.
Is there a way to force the graphic style of the layer being pasted into to override any original attributes from the copied file?
View 2 Replies
View Related
Jul 11, 2012
I'd like to create a circle with no fill but a stroke of arrow heads, so that the arrow heads appear to be following on, one after the other around the circle.
What would be the best way to do this?
View 3 Replies
View Related
Feb 3, 2014
I am trying to add a number to a variable. var n=y+36...So I am creating a new variable (n) whose vaule is 36 points more than the variable "y".
View 5 Replies
View Related
Dec 2, 2013
I am trying to create a script that adds custom spot colours to the swatch pallet. I've manage to put together something that works (I've adapted an existing script), but the colours added are not spots, just CMYK colour swatches.Also, I need the script not to error if the swatch already exists.
//Add Custom Swatches
var docRef = app.activeDocument;
function cmykColor(c, m, y, k) {
var newCMYK = new CMYKColor();
newCMYK.cyan = c;
newCMYK.magenta = m;
newCMYK.yellow = y;
newCMYK.black = k;
return newCMYK;
[code]....
View 2 Replies
View Related
Jan 14, 2013
I tried to add a LabColor with an Illustrator script.
function addLabColorToSwatch(L,a,b,swatchName){
var color = new LabColor();
color.l = L;
color.a = a;
color.b = b;
var swatchgroup = app.activeDocument.swatchGroups.add();
swatchgroup.name = "test swatchgroup from jsx script";
[code]....
The script crashes on the Line 'swatch.color = color;' with "Error 1202: Not implemented"..This seems to a bug. I allready filed it.
View 5 Replies
View Related
Apr 2, 2012
areaText.contents = "This is an Area Text in a rectangle. See how it flows to the next line.";
/*
i want to break the sentance from 'Text' ie i want to add new line in between and also some more spaces.
*/
For example: I want to write the above text like this way
this is an Area. Text in a rectangle. See how it flows to the next line.
View 2 Replies
View Related
Mar 6, 2014
I am trying to add spot color in illustrator using javascript, TRY CATCH is not woking, it is adding again and again same color value with name of "spot color 1" and "spot color 2" ...
try {
var myDoc = app.activeDocument;
var spotName = "FINISHING";
var spot = myDoc.spots.add();
[Code] .......
View 1 Replies
View Related
Dec 19, 2011
How to make the following script for adding serial numbers apply to multiple files in a selected folder?
var docRef = app.activeDocument;
with (docRef) {
var docName = name.substring(0, name.lastIndexOf('.'));
var artRight = visibleBounds[2];
[Code] .....
View 6 Replies
View Related
Oct 22, 2013
Is there a way to insert a Ai graphic into msWord and the graphic text still be searchable in msWord? I would like the text in my Ai graphic to be searchable once the graphic is inserted in msWord. I have tried different Ai exports, but all come into msWord as pictures. Is there a way to keep the Text Layer in my Ai file searchable in msWord.
View 3 Replies
View Related
Mar 28, 2012
I'm new to scripting What I want to do and don't know how to go about it is to run a script that collects the saved file name and the full path where the file is saved on the network and displays it on my document.
View 2 Replies
View Related
Apr 8, 2014
I have an InDesign document, where I have defined some Object styles for my text frames - such as the size (width x hight) of the text frames, and this works fine.
I would like to do the same thing for my graphic frames, but I can't find this option. I figure it must be possible somehow?
An object style which makes the picture frame ex. 50 x 50 mm. with the picture centered in the frame.
View 4 Replies
View Related
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
Aug 12, 2011
This is probably only task I will need from Gimp but I do need it in step by step.
I am the leader of a program at church and there is a logo for it. I am endeavoring to take that logo saved on my HD reduce its size ( I know How ) then add text to bottom and save it as a signature in pictures to use with the group.
View 2 Replies
View Related
Jan 29, 2009
who was layed off to do some simple brochures. He has a ton of layer styles that I need to install on my PC.
I added the styles into the /Presets/Styles directory. I can see the text list on the top right in my syles icons.
However, the newly moved styles do not show up as a thumbnail unless I click on the text of the name.
Is there an easy way to mass import the 300+ ASL files I have?
I am using PS CS3
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
Dec 1, 2011
how to sort (alphabetically, for instance) the Graphic and Text styles in the Graphic and Text Docker? I need the styles "Roads-county", "Roads-State" & "Roads-US" near each other and "apples" listed first.
View 9 Replies
View Related
Jul 14, 2012
In CDraw X5 I can choose line styles. But I would like to add some more styles (and to remove some that I never use).I only found a possibility to create new styles based on a kind of a pixel approach: A one-by-many array of single squares can be marked to be coloured of white, producing dashed lines with any kind of dash length.Also, the dash "frequency" seems to be dictated by the line width only; I do not manage to make thin dashed lines with a reasonably visible dash frequency.
However, I would like to make line consisting of other shapes, like circles, triangles, diamonds, etc., either filled or "open". Or make thin dashed lines with user-specifiec dash and space lengths that do not change when changing the line width. Is this possible?
Also, multi-colour dashes – with e.g. odd-numbered dashes in one colour and even-numbered ones in another color – might be useful.
In the current version, however, the number of dash schemes available is big enough to be confusing. Especially when the line is made relatively wide – say, 0,5 .. 1 mm or so – and I want to make more lines with the same shape, than it is difficult to find again the same shape the list of standard shapes. Is it possible to add names (or numbers, but not just running numbers!) to the shapes, so that a shape can be found again easily?
View 5 Replies
View Related
Nov 15, 2011
I want to add say a circle and an arrow at the two ends of a line. I am able to do it using Blocks for one single line by inserting the blocks at desired locations. But how to do it for say all the lines in a drawing or shape file without customization.
View 1 Replies
View Related
May 6, 2012
Can you access graph data through the scripting DOM?
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
Jul 5, 2004
Does anyone know of a tutorial or a site that may explain how to do this? I dont mind redrawing the graphic, but i would like vector graphic made.
View 13 Replies
View Related
Oct 27, 2011
How do I paste a graphic over an existing graphic on a header? and how do I determine the amount of pixels to be covered and the amount of pixels in the graphic I am wanting to use?
View 3 Replies
View Related