Help with 2 topics: creating a bounding rectangle and selecting particular objects


hi all,

 

i'm extremely new scripting; managed create script extend artboard of documents (which extremely proud of given inexperience!) , align couple of objects alongside each other, attempts script new code has met failure.

 

firstly, need illustrator cs4 javascript code create bounding rectangle selected object(s). selected object(s) rectangular; no irregularly-shaped objects. know should simple, can't work out variables/attributes involved.

 

secondly, code selecting leftmost object in document. , equivalent rightmost object.

 

if makes difference, i'll stitching these scripts action achieve following workflow.

  1. two eps files dragged empty document 'linked files'.
  2. the 2 linked files aligned alongside each other. (using script i've written.)
  3. the leftmost linked file selected , has bounding rectangle created, used mask linked object.
  4. the rightmost linked file selected , has bounding rectangle created, used mask linked object.
  5. both masked linked files selected, , bounding rectangle created mask them same clipping mask group.
  6. the artboard set dimensions of combined masked pair (i've managed write script already).
  7. the linked files embedded document.

 

the reason because have eps map files exported autocad left- , right-hand pages. these need combined 1 file, when brought in lose masks bbox element not recognised illustrator. double-masking in process above needed ensure content either map doesn't overlap other half of map.

 

any assistance appreciated, , sorry long-winded post!

thanks,

waynem@lp

well first question cad *.eps files same size bounds…? create 1 doc, place links, mask, save as… loop file list placing r&l linked pairs, save each…

 

not long-winded @ all… scriptable job yes ( if have lots ) mask same amount too… may have more questions…



More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support