Hi - I just started working with SG, have experience with AI Javascript. This script:
// rasterize selected items
main();
function main()
{
var items = document.getItems({
selected: true
});
if( !items.length ) {
Dialog.alert( "Please art items to be rasterized" );
return;
}
var raster_layer = new Layer();
raster_layer.name = "raster";
raster_layer.activate();
var raster = Item.rasterize( items, 'rgb', 72, 0 );
}
Yields:
Can't find method com.scriptographer.ai.Item.rasterize(com.scriptographer.ai.ItemList,string,number,number).
at Scriptographer Scripts/rasterize-1.js:21
at Scriptographer Scripts/rasterize-1.js:3
Running on current mac Lion.
Aloha - Beau.