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

CS UI

$
0
0

Are there some examples of script dialogue boxes (or UI )?? I've had a look at CSUIB 2.0 but it's not javascript friendly - which doesn't help when you don't know what's wrong. Ultimately I want to create a dialogue box that is populated by the layers in a photoshop file. Each of the layers listed is to be given a radio button so the user can switch them on or off. After which I can then pass a function to each selected layers.

 

Here's what I've got so far:

var dlg =
"dialog {text:'Script Interface',bounds:[100,100,420,510]," +
"radiobutton0:RadioButton {bounds:[110,330,211,350] , text:'layerName0' }," +
"radiobutton1:RadioButton {bounds:[110,300,211,320] , text:'layerName1' }," +
"button0:Button {bounds:[30,370,130,390] , text:'cancel' }," +
"button1:Button {bounds:[170,370,270,390] , text:'OK' }};";

 

var win = new Window(dlg,"my dialogue");
win.center();
win.show();

 

I don't know why the rado buttons aren't working as they should. Any ideas?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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