Hello.
i'm quite new to scripting in cs4. I did a very little script to get illustrator artboards available as gif files :
/********************************************************** fr32c Exporter les plans de travail en gif. *********************************************************/ if (app.documents.length>0){ var docRef = app.activeDocument; var numArtboards = docRef.artboards.length; var destFolder = Folder.selectDialog('Select the folder to export the PSD files to:'); if (destFolder) { for (i=0; i<numArtboards;i++){ var me = docRef.artboards.setActiveArtboardIndex(i); var exportOptions = new ExportOptionsGIF(); var type = ExportType.GIF; var fileSpec = new File(destFolder+"/"+docRef.name+i+".gif"); exportOptions.antiAliasing = false; exportOptions.colorCount = 64; exportOptions.colorDither = ColorDitherMethod.DIFFUSION; exportOptions.artBoardClipping = true; app.activeDocument.exportFile( fileSpec, type, exportOptions ); } } }
That's ok for the moment as it helps me send an animation frame by frame to photoshop. But i'd like to go a step further :
I'd like to load those gif files in photoshop, (i can do it from the script "open in a stack"), make an animation, and then export it to the web as an animated gif.
The problem is i find no access to the animation panel in the sdk, nor to the animation setups in the save for the web window, via javascript too...
Any clue welcome.
(I can still do this by hand or do an action script in photoshop, but that sounds like more problem accessing it from illustrator...)
Thank you.
Franck