string $fileprefix = "body_cl_";
string $path = ("C:/Documents and Settings/David/Desktop/thesis/animation/line/line_scene_1/"+
"Photoshop Animation/seqs/body_illustrator_2/");
//this for loop covers the first 9 files//
for ($i = 1; $i < 10; $i++) {
string $shortnm = ($fileprefix+"000"+$i+".ai");
string $filenm = ($path+$fileprefix+"000"+$i+".ai");
pv_performAction $filenm "Adobe(R) Illustrator(R)";
file -import -type "Adobe(R) Illustrator(R)" -namespace $shortnm -options "sc=1;group=1" -pr $filenm;
}
//this for loop covers files 10 to 99//
for ($i = 10; $i < 100; $i++) {
string $shortnm = ($fileprefix+"00"+$i+".ai");
string $filenm = ($path+$fileprefix+"00"+$i+".ai");
pv_performAction $filenm "Adobe(R) Illustrator(R)";
file -import -type "Adobe(R) Illustrator(R)" -namespace $shortnm -options "sc=1;group=1" -pr $filenm;
}
//this for loop covers up to file 999//
for ($i = 100; $i < 376; $i++) {
string $shortnm = ($fileprefix+"0"+$i+".ai");
string $filenm = ($path+$fileprefix+"0"+$i+".ai");
pv_performAction $filenm "Adobe(R) Illustrator(R)";
file -import -type "Adobe(R) Illustrator(R)" -namespace $shortnm -options "sc=1;group=1" -pr $filenm;
}