|
Post by Bailey on Oct 11, 2018 2:36:51 GMT
|
|
|
Post by Bailey on Oct 12, 2018 1:31:23 GMT
|
|
|
Post by Sydney on Oct 12, 2018 1:41:58 GMT
Bailey, would you be able to tell me where I can find a reference guide which lists all of the objects, properties and attributes for PSE. I am really excited about having a go coding in either VB (which I know) or JavaScript (which I wouldn't mind learning).
|
|
|
Post by Bailey on Oct 12, 2018 3:01:14 GMT
Hi Sydney,
hth
|
|
|
Post by Sydney on Oct 12, 2018 3:22:30 GMT
Hi Sydney,
hth
Thanks mate - you are a legend!
|
|
|
Post by Bailey on Oct 12, 2018 9:25:31 GMT
You're welcome Sydney , If you need help with your scripts, post in a new thread and I will be happy to try to help. Javascript is in my comfort zone. VB, not as much. Enjoy your coding
|
|
|
Post by Bailey on Oct 14, 2018 1:00:01 GMT
For anyone interested in creating their own custom scripts for PSE -
I have been googling on how to create GUIs (Graphical User Interface) using javascript in PSE combined with Elements+. I found these 2 very helpful references. Reading through the references to familiarise myself with ScriptUI I created a quick test/demo GUI for my script in the OP. I see ScriptUI allows you to create GUIs similar to some of those in Elements+. For anyone interested, my test script below shows a demo of the potential in making scripts extremely user friendly/interactive. For testing purposes I set up the Submit button to simply display whether the "Simplify all layers" checkbox is checked or unchecked by the user. The filenames in the box above are "hardwired" at the moment. Eventually the box will be populated with the user selected image files. In the fullness of time I will add a GUI to my script in the OP to make it much easier and user friendly for a user to select options.
var dlg = new Window( "dialog", "Open Images As Layers" ); dlg.size = [ 400, 300 ];
dlg.listPnl = dlg.add('panel', undefined, 'Selected Files'); dlg.listPnl.filesList = dlg.listPnl.add('listbox',undefined,['img_1.psd','img_2.psd','img_3.psd','img_4.psd','img_5.psd']); dlg.listPnl.chkBoxSimplify = dlg.listPnl.add('checkbox',undefined,'Simplify all layers');
dlg.btnPnl = dlg.add('panel', undefined, ''); dlg.btnPnl.cancelBtn = dlg.btnPnl.add('button', undefined, 'Cancel', {name:'cancel'}); dlg.btnPnl.submitBtn = dlg.btnPnl.add('button', undefined, 'Submit'); dlg.btnPnl.submitBtn.addEventListener('click',runSubmit); dlg.show(); //======================================================== function runSubmit(){ if(dlg.listPnl.chkBoxSimplify.value === true){ alert('User selected to simplify images'); } else { alert('User selected to open images as smart objects'); } }
|
|
|
Post by Bailey on Oct 15, 2018 1:24:06 GMT
|
|
|
Post by Bailey on Oct 15, 2018 9:33:07 GMT
|
|