Illustrator Scripting :: Detecting Objects Inside Shape?

Jun 18, 2012

so I came up with this script, and it worked fine until I tried it on a different file. I have moved the artboard around all over the "main" canvas (if that is what it is called) and on the one that it works on, seems to only work when artboard(top, left) is positive values. however on the new file it doesn't seem to matter where it is on the artboard, it wont work anywhere. it should find the textpath relative to the shapes position.
 
I thought it was the coordinateSystem, but that doesn't seem to fix it. How the canvas works (maybe the math.abs();
 
threw it up on gist because it was pretty big: [URL]

View 3 Replies


ADVERTISEMENT

Illustrator :: Select Objects Inside A Shape?

Apr 24, 2013

Im looking for a way to export a pattern made in Illustrator to auto cad.
 
I would like to select objects inside a shape based on the shape.
  
As you can see here i would like to select all the objects inside the blue circle, and delete everything outside of it. I dont want to use a cliping mask as it does not really destory the objects outside the circle.

View 3 Replies View Related

Illustrator Scripting :: Change Colour Of Objects Inside Of Document Using Applescipt?

Mar 26, 2013

I'm trying to use this command to change the colour of objects inside of a document using applescipt but i keep getting an error "adobe illustrator "can't get color"" the colour exists and is active on a document. I have read the manual on variables and i'm a little lost on what i'm doing wrong, heres what i've got so far:
 
tell application "Adobe Illustrator"
 
if color is "C=0 M=0 Y=0 K=90" then
set color to "C=0 M=0 Y=0 K=90"
end if
end tell
 
i understand this is quite basic but its all i have to start with at the moment

View 24 Replies View Related

Illustrator :: Draw Inside Not Working Inside Expanded Shape

Dec 3, 2010

I really enjoy this new draw inside feature in Illustrator. But, I find that it does not always work. It seems to be grayed out sometimes. For example, I have drawn a shape with my Wacom tablet using a blush.  I then converted it to a shape instead of keeping it a stroke by expanding it. But it will not allow me to now draw inside of it, even though it is a shape.

View 8 Replies View Related

AutoCAD VB :: Detecting Point Whether It Is Inside Or Outside Closed Object

Oct 4, 2012

I have a closed object and a line outside this object. I want to take anypoint on this polyline as a reference and check whether  that point is lying inside the closed object or outside.

View 2 Replies View Related

Illustrator Scripting :: Renaming Layers To Be The Text Inside

Oct 9, 2013

I've got an Illustrator CS6 document that has 500+ layers with individual words on them (a word cloud).  I'm needing to animate this in AE.  When I "Release to Layers (Sequence)", all of the layers become Layer 1, Layer 2, etc.  Is there a script that will rename all of those layers to be the text inside them? 
 
i.e. Layer 1 has the word "Pencil" as a sub-layer, editable text.. I need to rename the Top-Layer Layer 1 to "Pencil".  I'm hoping there is a script that can do this so I don't have to manually rename all of the layers.I have found this script:
 
var idoc = app.activeDocument;
var ilayer = idoc.activeLayer;
for (i=0; i<ilayer.layers.length; i++) {
    var isublayer = ilayer.layers[i];
    isublayer.name = isublayer.pageItems[0].name;
}
 
But is doesn't seem to do what I need.

View 8 Replies View Related

Illustrator Scripting :: Accessing Text Frame Inside An Envelope?

Jan 6, 2013

I am writing a script using javascript and the ESTK. I am able to access text frames in my document by name and/or id without a problem. However if the text frame is inside an envelope I can not access it using my script.

View 6 Replies View Related

Illustrator :: Cannot Edit Inside Of Shape?

Nov 25, 2013

Editing someone else's file
 
They have a Square with an oval in the middle used as a clipping mask
 
When I click on the object, I can only modify the outside square, not the inside oval
 
What kind of a shape is this, and can I edit the oval? I don't use Illustrator much.

View 4 Replies View Related

Illustrator :: Add Shapes Inside Outlined Shape?

Feb 21, 2013

I have created the outline of a snake using the pen tool.  The shape is closed.  I want to add scales that do not overlap and are snug against the outline wall.  Im sure I am missing something incredibly simple.  I tried to create anchor points along the outline and use the pen tool to connection the anchor points but doing so would delete the anchor points.  Each scale will be different colors and shape and they need to all be snug together. 

View 5 Replies View Related

Illustrator :: Fitting Text Inside Shape

Sep 26, 2013

I'm trying to find a way to fit a text inside a shape and to align it exactly to the shape borders, I was trying to play with the justification panel under the paragraph link but couldn't make it work,

I was trying to fit my text inside a shape look like the number 7 so eventually when a viewer see it they can recognize the number 7 without a stroke - only by the text insize the shape, above is an example of what happe when I try the same with a circular shape - I would like the test to fit in nicely filling the entire circle.

View 5 Replies View Related

Illustrator :: How To Place Some Text Inside A Shape

Oct 24, 2010

I select a shape and choose file > place to place some text in it, though the text does not display, the stroke also disappears indicating that it seemed to do something.

View 8 Replies View Related

Illustrator :: How To Create Icon With Transparent Shape Inside

Feb 17, 2013

I would like to create a vector icon with a transparent shape inside it, like in this image below:
 
So everything should be transparent except of course the dark grey area...
 
Below is a link to my AI file if you want it:
 
AI File

View 4 Replies View Related

Illustrator :: Changing A Shape Inside Perspective Grid

Jan 20, 2013

I've created a 2-point persective grid on top of a cube (see image below). I'm tyring to recreate the cube and have started by inserting some purple squares into the right side of the perspective grid. I've drawn an ellipse at the corner of the original cube that I'm trying to copy, to indicate where I need my squares to stretch to.
 
How I can stretch my purple squares in perspective so that they match the end of the orignal cube as indicated in the image below? I've tried skewing but this doesn't skew in perspective.

View 5 Replies View Related

Illustrator :: Put Objects INSIDE 3D Object?

Aug 8, 2013

How would I put smaller objects inside a 3D object? I made a tube and wanted to fill it with little spheres. How to put the objects inside and shade them to look like they're in there.

View 4 Replies View Related

Illustrator Scripting :: How To Align Text With A Shape

Aug 14, 2012

How i can align vertical center and horizontal center a single line text to a shape (in vbs) ?

View 1 Replies View Related

Illustrator Scripting :: Replicate Shape Programmatically (JS)?

Oct 1, 2012

Any way to replicate an path object programmatically in a script? I'm searching for something like JavaScript's .toSource equivalent...

View 4 Replies View Related

Illustrator Scripting :: Fill A Shape With Instances Of A Symbol?

Sep 6, 2012

I'd like to fill a shape with instances of a symbol. The sybmols should vary in size but never touch each other or the outer edges of my shape. Is there a script that can do this?

[URL]

View 1 Replies View Related

Illustrator Scripting :: How To Make Custom Shape Using JavaScript

Oct 1, 2013

I would like to create a trapezoid shape and be able to color it in, just like I'm able to do with the PathItems (e.g. rectangle, ellipse). I would like to be able to do this in Javascript.
 
I was thinking it might have to do with PathPoints, but Adobe's Scripting Reference Guide does not make it clear.

View 3 Replies View Related

Illustrator :: Selecting Objects Inside Selection Window Only?

Aug 28, 2012

is there a way, that objects only inside the selection window or lassoed region get selected rather than objects getting selected which are partially inside the selection window?

View 5 Replies View Related

Illustrator Scripting :: Read A Number From A Variable And Rotate A Shape

Jul 26, 2012

I'm using the variables panel in Illustrator to pull a data set I've got.
 
For example there's 2 text variables and 1 number going from 0-359. I'm looking for a script which looks at the variable name and pulls the number, then uses that number to rotate a shape by that many degrees.

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

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

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

Illustrator Scripting :: Select Objects Outside Artboard Using JavaScript

Aug 10, 2013

I want to select the objects outside artboard using javascript. Their are many objects outside activeartboard i want to select all those object using script.

View 1 Replies View Related

Illustrator Scripting :: Select Only Objects Within Selection Marquee

Sep 17, 2012

I am trying to find out if there is a way to select only the objects within a selection marquee? In AutoCAD you can make a selection window from left to right and only those objects entirely within the window are selected. If you window from right to left all objects that are "crossed" or touched by the window are selected. Is there a similar technique in Illustrator?
 
Currently I have to select the objects, then go back and hold the shift key to deselect the object I don't want, or put objects on different layers then lock layers to prevent extra objects getting selected.
 
In AutoCAD, my primary program, you simply draw a selection window, left or right, depending on what your next step would be. No special tools or toggles or thinking ahead, it's just the primary selection process and very intuitive.

View 4 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 :: 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 View Related

Illustrator Scripting :: Align Selected Objects To Artboard

Nov 15, 2013

Simple solution to aligning selected items to the artboard. I was going to create an action but then realized it would be more convenient for me to include it in my script file....I have a script to align objects with each other but they dont align to the artboard.

View 11 Replies View Related

Illustrator Scripting :: Selecting Objects By Group Names?

Feb 17, 2012

How to select objects by their group names?
 
I'm working with imported graphics, and the objects appear in the AI layer hierarchy grouped and named according to their object types in the native program (see the attached image). The problem lies with the annotation objects: they are made of different parts for which different graphic styles are needed; however, they all come in one layer and are difficult to access for global operations. I need to do different things with the different object types (delete the POINT's, move the LINE's and LWPOLYLINE's to different layers, etc...). The option of selecting objects individually is ok for small data sets, but you can imagine this becomes untenable in a hurry.
 
Two possible solutions I've considered:

(1) change the output parameters in the source program such that the objects come into illustrator with different graphics allowing them to be accessed through the "Select same ..." tools; it would work, but is problematic for the source program

(2) print the annotation graphics with their desired graphic appearance to pdf rather than importing the source file directly in AI, then open in AI to render the remaining graphics; again, this works but introduces inefficiency in the process. Also, the print process tends to explode closed paths requiring more inefficient path tinkering in AI.
 
I would like to tell AI to select all objects named "POINT" or "LINE" etc... but have found nothing in the documentation or forums on whether this is possible.

View 1 Replies View Related







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