Illustrator Scripting :: Make Objects Same Width Or Height?

Sep 13, 2012

I found this script that makes the selected objects the same width AND height. I am very new to creating scripts. is it possible to modify this to make an object the same width leaving their heights the same?

mySelection = activeDocument.selection;
if (mySelection.length>0){
if (mySelection instanceof Array) {
goal=mySelection[mySelection.length-1];
for (i=0; i<(mySelection.length-1); i++){

[Code] ......

View 2 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Replace Instances Matching Height Or Width Of Items

Nov 26, 2011

Im struggling with the correct use of symbol / symbol items in applescript. I can successfully list the symbols used on the page, but I cannot select them. How I can select all the items on the page that are Symbol Items of symbols named "Apples" but not oranges? After that I hope to replace the instances matching the height or width of the items whichever is greater with a 3rd item name. Javascript is always an option as well but I had the same difficulty.

View 14 Replies View Related

Illustrator Scripting :: How To Determine Swatch Pattern Color Width And Height

Dec 31, 2012

I have an AI file containing seamless pattern swatches.I'd like to get each swatch vectors (ie : access the swatch groupItem). It's doable when clicking on the swatch panel and dragging the swatch on the document, or even double clicking the swatch in the swatches panel, I'd like to do it with javascript.
 
how to access swatch patterns properties.

How to access the swatch properties, like when double clicking on the swatch in the swatches panel, how to "simulate" a drag & drop of the swatch to the document, I'll take it too, though I think it is not the most convenient way to do.

View 7 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 :: How To Make Arbitrarily-shaped Selection Of Objects

Jun 29, 2013

I have a grid of objects—say, tiny squares. I'd like to make arbitrarily-shaped selections of those objects—for instance, select a star-shaped group of the squares. Or a circle-shaped group of the squares. Or use text paths to select letter-shaped groups of the squares.
 
I could imagine a utility that lets me choose an arbitrary shape/path, and then turn that into a selection of objects on the canvas. Is this possible?
 
Right now I'm stuck using the lasso tool to hand-draw shape selections but it's not accurate enough for what I need to do.

View 1 Replies View Related

Illustrator :: Adjust Width Or Height?

Dec 13, 2013

illustrator cs4. when press on drawing or text, it cannot be adjust on it width or height by mouse! Photo 1 cannot adjust. Photo 2 (sample) can adjust

View 4 Replies View Related

Illustrator :: What Is Max Size Of Width And Height In All Measurement

Feb 20, 2013

What is the max size of width and height in all measurement (Points, Picas, Inches, Milimeters, Centimeters, Pixels) when you create a new document? I would like it to use it together with cartesian coordinate system and ruler.

View 1 Replies View Related

Illustrator :: Get Width And Height Box As Resize Object In CS6?

Apr 16, 2013

In a training video on Illustrator cs6 a device is shown as follows, as the instructor manually resizes an Artboard using the Artboard tool: 

Justin, the instructor, calls the little box that immediately shows width/height a "width and height box" but searching on that term is not productive. When I run the program  the device is not available, not does the video explain what option makes it available or what might have changed on my particular copy to obscure or disable the box. While I know I can get the same effect by choosing the Info window, and can even adjust the parameters more precisely using the control panel bar, I would like to have the convenience of this box.
 
I note that in the same video series (from Lynda.com) the same type of display device is shown when the instructor resizes a graphic. After some 30 minutes of Google searches and searching for the identity of this device and how to enable it I come up empty.. An experienced Premiere editor, I'm trying to widen my skill set into more of the Adobe suite and new to Illustrator;

View 2 Replies View Related

Illustrator :: Document With 300px Height And Width With PPI Of 300 Is 4.17in?

Sep 1, 2013

I'm totally new to Illustrator and need to make a document that is going to be placed in a magazine ad (it's a free placement, hence why I'm just trying to do it myself). I can get around in PhotoShop, but Illustrator is confusing to me. The ad dimensions are supposed to be:
 
2.33" w x 7.5" h
700 x 2250 pixels
 
When I create a new Illustrator document, leaving the Raster Effects setting in the Advanced section at 300ppi, if I change the Units setting to pixels, put in 300 for width and height, then change the Units back to Inches, it says the width and height are 4.17 in.

View 1 Replies View Related

Illustrator :: Increases Width And Height From Middle Outward?

Jan 15, 2013

I reseted my illustrator settings because it was having some problems, the settings I reset was changed everything back to pixels. I am working with small graphics that need to fit within 20x20 pixels
 
the problem is, when I resize something, example: 1x5, and I up the 1 to 2, it will increase it to 2 pixels from the middle of the object making it's coordinates ?.5 instead of a round number. I do not want to turn on snap anything because it worked just fine before I reseted my settings, it doesn't show it as being off at .5 but when I select multiple objects that the coordinates are at whole numbers, combines they make a number .5.
 
What I want - instead of the object increasing, when I up its size, from the middle of the object, I want it to increase down and to the right, keeping it's coordinates the same.

View 2 Replies View Related

Illustrator :: How Width / Height Calculated For Shapes And Strokes Converted

Sep 3, 2013

How is width and height calculated in the transform panel for an object? Does it use an average? An example can be seen in the first image. The lines are not a uniformed width.
 
Also, how are strokes converted from pts to pxls? For instance, if I make a stroke that is 2.3 pt, when I expand the object the width in the transform panel will say 2.3px ; however, I thought the point to pixel conversion (even for a 72 dpi screen resolution) was different. An example can be seen in the last two images, where a line was made with a specified stroke width and then expanded.

View 20 Replies View Related

Illustrator :: Script - Width And Height Input Into Text Field?

Jun 11, 2013

Illustrator CS6. Is there a script that inputs in a text field the width and height of an object. I do proofs and for a printing company and we always have to write the size of the artwork for the customer to approve. It's easy to do, but when you do 100's a week, it gets old and annoying. I do scale the image down to be visible on 11x8.5. I would think if there is a way to input the size of artwork, there would have to be a way to write the script so it can multiply the scaled down artwork for proofs to the actual W and H of the object. If the art is 13"W x 20"H and I put it on the proof at 10%, I want the script to input in a text field the 13"W x 20"H.

View 1 Replies View Related

Illustrator Scripting :: How To Give Line Height To Text In AI Script

Jun 4, 2012

how to give line height to text in AI Script

View 3 Replies View Related

Illustrator Scripting :: Width Point On PathItem

Sep 5, 2012

You know the width tool? The one that lets you add "width points" to a line to adjust the width of the line at the point? I want to be able to script that!
 
Basically, my project is to add a bunch of width points to a line and give them random widths at those points. I'm planning on doing a LOT of these, so I'd rather not do them manually.

View 1 Replies View Related

Illustrator Scripting :: Moving Object (JSX) Using Its Width?

Mar 17, 2013

Is there any way to move a object using its width? ex: "move to left a box with 10cm(width) using this value (10cm)". But I want to capture the width of any selected object.

Another thing: i want to select objects with same fillcolor and do something like: pathfinder>>add;

View 9 Replies View Related

Illustrator Scripting :: Action To Change Width Of Image?

Jun 8, 2012

I created an action to change the width of an image. I execute the action using DoScript javascript method.
 
The first action Obj1 will select the whole image and second action Obj2 will open the transform panel and change the width of the image.
 
app.Open("D:LWW_Castoff45991_09_03.eps")       
app.DoScript("Obj1", "LWW")       
While (app.ActionIsRunning)           
Thread.Sleep(500)       

[Code]...

In the above code, the second action 'Obj2' is not getting executed. Both the actions  are getting executed individually. Let me know  the problem and how  to execute both the actions.

View 5 Replies View Related

Illustrator Scripting :: Variable Width Tool (JavaScript)

Feb 6, 2013

I am looking for any info on scripting the Variable width tool (Javascript).
 
Background: By adding a gradient to a variable width strock you can create nice 3D looking  Shapes (see example)

this is a straight vertical line with varied widths, then hit with a gradient.
 
Goal: My hope is to write a script that will take a "Profile" or "Shape" and convert it to a Variable width line. (see Example)

The Black line is to have its widths modified
The Red line is how wide the line needs to be.

View 10 Replies View Related

Illustrator Scripting :: Get Actual Visible Width Of Groupitem?

Oct 5, 2012

To get the top, left and width of an groupitem without Clipping mask. Actually the group has Clipping mask. But i need only the width of the selection (without Clipping mask). I got these properties in scripting but including the clipping mask. The GUI itself shows different (i.e. Info -->: X:0 mm, Y:0 mm, W:full width [including clipping mask]. Transform palette -->: X:43.00, Y:22.0, W:64 [excluding clipping mask])
 
How to get the properties without clipping mask?

View 1 Replies View Related

Illustrator Scripting :: Get Width That Multiple Selected Items?

Apr 23, 2013

How can I get width that multiple selected items? (Not grouped.)
 
//---------- source code ----------
 var mm = 2.83464566929134 //unit conversion. (point->milimeter)
var W = docRef.selection[0].width/mm;
alert(W); 
//---------- source code ----------

View 3 Replies View Related

Illustrator :: Specify Width In Pixels For Multiple Objects At Same Time In CS5?

Oct 25, 2012

Illustrator has the 'Transform Each' dialog, but it only allows you to scale multiple objects by specifying a percentage. Is there any way to specify the size in pixels? More specifically, imagine I have 10 rectangles on my canvas, and I want them all to be of a specific height. The rectangle position on the canvas matters, so I can't do the 'vertical align to top and then resize group height' trick - they need to be resized in place.

View 5 Replies View Related

Illustrator SDK :: How To Reduce / Resize Width Of Objects (AIArtHandle) Via APIs

Mar 26, 2012

I want to know how I can resize the width/ length  of a art?
 
I went through APIs and got some useful suite like AITransformArtSuite. But I am unable to use it's method TransformArt. since I don't know how to create appropriate AIRealMatrix.

View 2 Replies View Related

Illustrator Scripting :: How To Get Counting Of RGB Objects

Jul 18, 2013

how to get the counting of RGB objects, CMYK Objects and Grayscale Objects information for illustrator vector(editable) file via script for windows.

In illustrator raster image file i need to know how to get the Embedded image information(CMYK or RGB or Grayscale) via script for windows. I collect these infomation manually from "Windows->Document info". I saved the "Document Info" details in illustrator manually using "Document Info Pannel".

View 2 Replies View Related

Photoshop :: Selecting X For Width And Y For Height

Jun 10, 2005

I want to specify a selection, is there a way to do that, or to show what pixel number you are on in Photoshop 7.0? I have an image that is 200w X 127h. I am going to be slicing this into two different images. My top image needs to be 200w X 91h and the lower 200w X 36h.

View 4 Replies View Related

AutoCad :: Stretching Width OR Height?

Jan 27, 2013

Suppose I have a rectangle 10 x 8 and then I join the middle points of the widths with a line ... so I will end up with 2 boxes of 5 x 8. Now what I need to do is to stretch the side by 2 units to become 12 by 8 but I want the middle line to move automatically during the stretching process so I end up with two boxes of 6 x 8.

View 9 Replies View Related

Illustrator Scripting :: Group Objects On Artboard

May 27, 2013

When i call the method selectObjectsOnActiveArtboard on an artboard, is there a way to easily group all items in the selection? Like in the menu found under "right click > group"

View 4 Replies View Related

Illustrator Scripting :: Measuring Distance Between Objects?

May 19, 2013

I'll start off by saying I'm new to scripting. I've tinkered with a script I found for measuring the length and width of a selected object and placing those values in a specs portion of the file. It works great, I'm very excited about how much better my life could be if I conquered scripting, and now I'm struggiling to get another one working but I'm a little stuck.
 
What I need to do now is measure and print the distance from the right edge of a selected object to the left edge of another object named "repeat" in a designated "specs" area of the page. The idea is to show the distance between a print impression and when it will print again (repeat), because it is printed using a print cylinder that rotates to print over and over on a continuous film.
 
I'm a little fuzzy on how I call the value of the left side x value of an object, but basically what I want is to use that value and then subtract from it the width of the selected object. The difference is the distance between impressions.

View 4 Replies View Related

Illustrator Scripting :: CS 5.5 - Deselect Objects Script

Nov 8, 2012

Is there any way to script the deselection of for example 9 out of 10 selected lines, sorted from left to right?
 
So if I have 100 lines selected, the result will be only 10 selected lines evenly spread out.
 
I'm using CS 5.5.

View 16 Replies View Related

Photoshop :: Change Just Width Or Height Of A Brush In CS4?

May 3, 2012

I have a brush that is square.  Is it possible to change just the width or just the height and if so, how?

View 2 Replies View Related

Photoshop :: Is Percentages Of Width And Height Appear As Pixels

Jun 1, 2012

Whenever I am about to change the dimension of an element, in the option bar, width and height appear in percentages.
 
Is there a way I can make these appear in pixels?

View 2 Replies View Related

Photoshop :: Decreasing Width Of Image But Not Height

Mar 29, 2013

Why is the contact- aware scale in grey and therefore unusable?

View 1 Replies View Related

CorelDRAW X6 :: Export Image Of Certain Width And Height

Aug 3, 2013

I'm trying to export an image of a certain width and height but when I click on export, the size doesn't remain the same. I try to change it back to the normal size but it's impossible as one number gets altered if I change the other.

I have tried with the "maintain aspect ratio" option checked and also unchecked. This has never happened before, I've always been able to export with the exact size I want, although very often I find the width and height change when I click on export but I have been able to change it back until now.

View 3 Replies View Related







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