Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

selecting raster images using a script.

Community Beginner ,
Mar 08, 2013 Mar 08, 2013

I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)

I'm using cs5 on a mac. As far as format goes I have hundreds of eps files that all have at least one raster bitmap tif which was imported as a linked file and then grouped with vector art. So I will like to run a batch script command that will select only that bitmap raster image (because I want to maintain the present vector art in the file) and convert that bitmapt tif to vector- and save the file which will hopfully be in vector format.

Please help!

TOPICS
Scripting
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 08, 2013 Mar 08, 2013

this script selects all linked images in the current document

var idoc = app.activeDocument;

var imgs = idoc.placedItems;

for (i=0; i<imgs.length; i++)

    imgs.selected = true;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Mar 09, 2013 Mar 09, 2013
LATEST

There is NO need to select objects using script… You just make target/reference of the object instead… Selecting is just a GUI thing. Both placedItems & rasterItems have trace() methods… so you just need to loop until non are left… You would need to provide more info but this is all scriptable… A pic of the layers palette is always helpful… is all your art in the 1 group at top level or does it nest down…?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines