Mobile app version of vmapp.org
Login or Join
Yeniel278

: How to get an Illustrator script to see the visible size of clipped art instead of the art's orginal size? When I use an Illustrator script using visible bounds or selection size on clipped

@Yeniel278

Posted in: #AdobeIllustrator #Cs5 #IllustratorScripting #PhotoshopScripting

When I use an Illustrator script using visible bounds or selection size on clipped art, the script sees the original size of the clipped art as the groups's size instead of its visible (clipped) size.
Lets say I have a 150mm x 200mm image and I am using a clipping mask to clip out a 100mm x 100mm part. So now I see a rectangle 100mm x 100mm, then add some other elements on it -- it does not get bigger than 100mm x 100mm. Then I want to work with this size not the, original image's size.

How to implement this in the script to work further with it? I am using Illustrator CS5.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel278

2 Comments

Sorted by latest first Latest Oldest Best

 

@Margaret771

You need to get the geometric bounds from the actual clipping path item; it's the first path item in a clipping group.

10% popularity Vote Up Vote Down


 

@Chiappetta793

As long as the clipped art is vector (as opposed to a raster image), you could use Object > Expand appearance on it to actually delete the parts that are clipped away. Thus, the script will no longer see the original art and work properly.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme