Photoshop Script - access UI layout within variable?
Hi there,
I've got the following variable as a UI layout of a window, I am trying to access btn_one button, but with no success.
var w = new Window("dialog { \
margins: 15, \
btn_one: Button { \
text: 'Button', \
size: [100,25], \
alignment:['right', 'center'] \
}, \
}");
Any help on achieving this? I need tried the following, it doesn't work.
btn_one.onClick = function(){
}
Thanks