Script UI API problems in PHOTOSHOP CC 2015

  • 1
  • Problem
  • Updated 3 years ago
  • (Edited)
I have discovered the following problems in Script UI:

1. No more trigger on events like onClick() with "image" elements

#target photoshop

dlg = new Window("dialog")
dlg.orientation = 'column';
dlg.alignChildren = 'fill'
dlg.alignment = 'fill'

var myImg = dlg.add("image");
myImg.image = File('photo.png')
myImg.onClick = function(){alert('Click')}//and nothing happens...

dlg.show()

//--------------

2. .location properties for elements like "iconbutton" (and another) always return undefined. And there is no way to control this properties
,
3. The groups is not transparent. I think this way is wrong. Because restricts the possibility of creating interfaces.

Functionality of my script UI has been built on it. And now this is broken. (
Photo of Dmitry  Petrenko

Dmitry Petrenko

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Pedro Marques

Pedro Marques

  • 161 Posts
  • 25 Reply Likes
Have you tried like this?
I don't have CC2015 but I'm curious about this.

(...)
myImg.image = ScriptUI.newImage(File('photo.png'));
(...)
Photo of Dmitry  Petrenko

Dmitry Petrenko

  • 2 Posts
  • 0 Reply Likes
Checked. No difference