Illustrator Scripting :: Remove Horizontal Scale On Circular Characters Only?

Sep 18, 2013

Lino's CrTronic used to have a command to set horizontal scaling to 100% for these 3 characters, and leave the rest alone.

® circle R
© circle C
• bullet
 
Because those 3 characters are circles we often want them proportional even if the rest of the copy is horizontally scaled.

View 18 Replies


ADVERTISEMENT

Illustrator Scripting :: Iterate Through Selected Characters

May 3, 2012

Code snippet to show me how to iterate through the selected text (not the frame!, not the words, only the selected chars) and make any change on the characterAttributes (size, color, etc.)?
 
In the property "app.activeDocument.selection" usually the selected objects are stored as an array. Now when I select characters in a textframe (or TextPath, whatever) there is a [Textrange] in it. I already tried some combinations like this snippet underneath but I still get errors, that selectedChars[i] is undefined.I'm on Illustrator CS4, Mac OS X, Javascript
 
var selectedChars = app.activeDocument.selection.characters;
for (i = 0; i < selectedChars.length; i++ ){                           
selectedChars[i].characterAttributes.fillColor = myNewCMYKColor;

View 14 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 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 :: How To Get Location Of Horizontal And Vertical Guides

May 17, 2013

How do I get the location of horizontal and vertical guides?
 
I'm halfway through by using some calculations on geometric bounds and subtracting it from the document height but can't I just do something like
 
nextGuide =mydoc.guides[x].location;
 
Also, why does it seem that Indesign scripting has more access to properties and methods?

View 5 Replies View Related

Illustrator Scripting :: Special Characters - Wrong Result With Bridge Talk In Loaded Script

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

Illustrator :: Remove Circular Shape From Rectangle - Smart Guide / Snap To Point Not Working

Aug 6, 2013

I am trying to remove a circular shape from a rectangle in illustrator, the retangles width is 10px and the diameter of the circle is 13px, I centre the circle ontop of the rectangle ( or I appear to)  but when I use the Shape mode tool minus front, the circle is no longer centred ( see images).

I have tried switching off smart guides and snap to grid and am still having the same problem.

In the above image you can see once I have divided the 13px circle from the rectangle it has moved off to one side.
 
Also when I am trying to manually place the circle ( rather than using the centre guides ) I can only move it by a large degree it alway moves further than I move the mouse, could this be because of a pixel grid? I do not think I am using this. ( can see in the above image where I am trying to place the circle and when I let go of the mouse, the grey circle is where it lands.
 
From the 2 images below you can see that there is a 1px difference on either side of the extracted circle I was trying to get centered.
 
I should mention that the 'Align to pixel grid' in the transform menu is inactive when I am trying to do this, as I initially thought that this may be the cause of my problems, but it made no difference.

View 9 Replies View Related

Illustrator :: Eraser Tool To Remove Parts Of Straight Horizontal Line

Aug 4, 2012

If I use the eraser tool to remove parts of a straight horizontal line, the resulting lines are not 180°.

View 6 Replies View Related

Illustrator :: Scripting - How To Remove Swatch In CS5

Oct 10, 2012

Swatches Swatches Read-only. The swatches in this document.
 
Deletes a swatch from the current document
Set appRef = CreateObject("Illustrator.Application")
Set documentSwatches = appRef.ActiveDocument.Swatches
Set swatchToDelete = documentSwatches(5)
swatchToDelete.delete
 
How am I supposed to be able to make changes to the swatches collection - it is read only...
 
Not supprisingly I have failed to implement this in C-sharp

View 5 Replies View Related

Illustrator Scripting :: How To Set To True Or False For Scale Stroke

Sep 12, 2012

does the document have a property that can be set to true or false for scale stroke? I didn't see it in the documentation, maybe there is another way?

View 1 Replies View Related

Illustrator Scripting :: How To Add Percentage Scale To Reduce Printout

Aug 12, 2013

When I printout a file at a reduced size, is there a way to add the percentage that it got reduced by on the printout?

View 1 Replies View Related

Illustrator Scripting :: Iterate And Remove Objects In A Layer

Apr 9, 2013

I am trying to iterate through objects in a layer and if the object satisfy a condition, I want to remove it.
 
Problem is that from what I suspect, if I use a "for loop" then when I remove an element, the initial length of the loop becomes invalid by removing the element. So what I would need is to iterate through objects in another matter and I am clueless.

View 3 Replies View Related

Illustrator Scripting :: CS4 - Remove All Hidden Page Items?

Jan 26, 2012

I'm trying to remove all hidden page items regardless of how many sublayers they are burried in. I wrote a snippet here that seems to only partly work. It removes all hidden page items unless two hidden items exist right after each other in the stacking order.
 
for (i=0; i<doc.pageItems.length; i++){
if (doc.pageItems[i].hidden == true){
doc.pageItems[i].remove();
}
}

View 3 Replies View Related

Illustrator Scripting :: Scale Objects Proportionately To A Specific Height

Nov 5, 2012

I have multiple icons placed in a document, from several different sources (all are vector objects) -- see the included image. They vary in size and what I would like to do is find a less onerous method of resizing all the heights to a specific size, while scaling the width proportionately. I have found several scripts that come close to a solution (see links below), but none that allow me to input a height (or width) in inches and have all the objects resize to that height proportionately.
 
Change Width to the Width of the narrowest object --> Script01
Change Height to the Height of the shortest object -->  Script02
Change Multiple Attributes (JohnWundes) --> Script03
 
icon image (couldn't place via Adobe Forum) --> click

View 2 Replies View Related

Illustrator Scripting :: Batch Convert Vector EPS To PNG Images With Scale

Nov 29, 2011

I'm looking for a script/program that if you run it, all the .eps files in a folder will batch convert to a png-24 with 250% scale.

View 20 Replies View Related

Illustrator Scripting :: Way To Add / Remove / Redistribute Anchor Points On Compound Shape

Sep 10, 2013

I am wondering if there is a way to add/remove/redistribute anchor points on a compound shape so that there are evenly spaced anchors along the outline of that shape.I am aware of the "add anchor points" command. But that adds a new anchor at EVERY midpoint between two anchors. It doesn't smartly calculate where to add and where to avoid adding anchors.

View 1 Replies View Related

AutoCad :: Stretch Drawing So Horizontal Scale Is Different From Vertical

Jan 6, 2012

I need to stretch a drawing so the horizontal scale is different from the vertical. The stretch command does not seem to work for this and scale only seems to allow a change in both axes.

View 7 Replies View Related

AutoCAD 2010 :: Horizontal / Vertical Scale Industry Standards

May 14, 2012

What is the industry standard regarding horizontal vs. vertical scale? More specifically, should the exaggerated vertical scale be proportional to the horizontal scale?

For example, if I have a drawing that has a horizontal scale of 1" = 100', should my vertical scale be 1" = 10'? Or if my horizontal scale is 1" = 30', should my vertical scale be 1" = 3'? Obviously, we have the ability to make the vertical scale anything we want but what is there a recognized industry standard that correlates the horizontal scale to the vertical scale?

View 1 Replies View Related

AutoCAD 2013 :: How To Create A Viewport With Different Horizontal And Vertical Scale

Jan 29, 2013

Is it possible to create a viewport with a different horizontal and vertical scale? I want to create a horizontal scale of 1"=40'-0" and a vertical scale of 1/4"=1'-0". Is this possible?

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 Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

3ds Max Modeling :: How To Create Circular Shaped Elevator With Circular Fence

Feb 25, 2013

I'm working on a UDK level for a college assignment.

I want to create a circular shaped elevator with a circular fence around it that's roughly half the size of an average sized character standing on it. I then wish it import this as a static mesh into UDK.

Here are 2 sketched up designs of the elevator, what I want to create.

1st image: [URL]....
2nd image: [URL]....

I am very new to 3DS Max so I would prefer a list of steps to follow to create this elevator with a a fence,

View 2 Replies View Related

Illustrator :: Making Circular Outside Stroke?

Jun 6, 2013

correct way to make a circular outline on a circle object, that has some white space in between? Did it a bootleg way, but am afraid the spacing won't be exact..

View 3 Replies View Related

Illustrator :: Add Circular Text Around Image?

Jun 28, 2013

I have successfully cropped/masked a circular image, and now need to add circular text around it. How do I accomplish that?

View 16 Replies View Related

Illustrator :: Stretching Type While On A Circular Path?

Sep 18, 2013

I'm working with a typeface that I need to stretch horizontally while following a circular shape. I don't want to distort it other than the horizontal stretching.

View 2 Replies View Related

Illustrator :: Circular Shaped Arrows With Spaces Between?

May 21, 2013

I would like to create similar arrows which create the circle in the logo below. I mean the white arrows inside the black part.

View 4 Replies View Related

Illustrator :: Creating Infographic That Has Circular Pattern?

Sep 24, 2012

I am trying to create an infographic that has a circular pattern.  I'm hoping there is a streamlined process that allows me to start with a linear set of bars/pattern (with vertical text) and then automatically transforms the set to an evenly-spaced radiating pattern.
 
Here are some examples of what I would like to achieve: [URL] ....

View 2 Replies View Related

Illustrator :: Circular Curve Distortion 3D / Filter

Nov 6, 2012

I am trying to create a circular graphic that is similar to a race track turn with banking.  Is there a type of distortion filter or 3d that I can use that can create the feeling of a vanishing point that bends around a turn?
 
Below is sort of the feeling

View 3 Replies View Related

Illustrator :: Stretching Single Characters In CS6?

Apr 18, 2013

I am working on a logo which has the word "E-Commerce" in it. I am using a font that works quite well for it but the dash is way too long, it's in fact longer than an m dash and the font doesn't have anything else.
 
Short of modifying the font file or turning it into outlines, is there a way I can just make that one character shorter? I seem to remember that in earlier versions of Illustrator you could set the font width but all I can see in the character pane in CS6 is kerning and tracking. I don't want to use the transform tool because it would stretch all the text inside the box.

View 3 Replies View Related

Illustrator :: How To Evenly Distribute Objects On Circular Path

Nov 6, 2013

When I use "object/blend/replace spine" it will distribute the objects evenly around the circle, but with no rotation. My issue is that I have objects shaped like people and would like them evenly around the circle, but rotated correctly so that their feet are all touching the circular path and their heads are always facing out. How can I achieve this?

View 2 Replies View Related

Illustrator :: Distribute Text Evenly Along Circular Path

Oct 14, 2012

I am fairly new to Illustrator, currently working on a project involving circular return address lables.  On the labels, the address text follows a circular path with bullets between the name, street, and city/state/zip. Now that I've entered all of the text onto the curved path, how do I distribute it evenly along that path?  In other words, how do I ensure that the same amount of space exists at the beginning and end of my line of text?  Right now, there is "leftover" space at the end of the address.

View 4 Replies View Related







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