Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

how to display images in the folder with the possibility of opening them in Photoshop ?

$
0
0

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  }

 

 

MyBrowser.jpg


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>