I created a script that displays a certain number of thumbnails.
Help me to do so that would be when you click on the thumbnail of the main image with the same name, located in another folder was opened in Photoshop.
And second - how add button for show next/prev group of images, if images are very many in folder.
PS - 16 images for example in archive http://yadi.sk/d/xy99PmCxSoLgm
var dlg = new Window('dialog', "MyBrowser");
dlg.preferredSize=[1100,900]
panel = dlg.add('panel');
panel.orientation = 'column';
var cntRow=4;
var cntCol=5;
for(var row=0;row<cntRow;row++){ rowName = "myRow" + row; row1 = eval(panel.add("group",undefined,{name: rowName,orientation:'row',margins:0,spacing:0,alignment:'left'})); for(var col=1;col<=cntCol;col++){ cellId = row*cntCol + col; cellName= "myCell" + cellId; PicName = File(Folder.desktop + "/img2lab/00"+cellId+".png"); r0 = row1.add('group',undefined,{name:cellName,margins:0,spacing:0,preferredSize:[200,100]}); r0.preferredSize=[200,100]; if(PicName.exists ){ r1 = r0.add("iconButton", undefined, PicName); } else{ PicName = File(Folder.desktop + "/img2lab/blank.png"); r1 = r0.add("iconButton", undefined, PicName); r1.enabled=false; } }
}
dlg.layout.layout(true);
dlg.show();
function f1(){
alert() // give name of pictures and ope in Photoshop }
