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.
- two eps files dragged empty document 'linked files'.
- the 2 linked files aligned alongside each other. (using script i've written.)
- the leftmost linked file selected , has bounding rectangle created, used mask linked object.
- the rightmost linked file selected , has bounding rectangle created, used mask linked object.
- both masked linked files selected, , bounding rectangle created mask them same clipping mask group.
- the artboard set dimensions of combined masked pair (i've managed write script already).
- 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
Post a Comment