Skip to main content
Inspiring
September 23, 2018
Answered

ScriptUI button active blue marker

  • September 23, 2018
  • 3 replies
  • 1101 views

Hi

I'm making a ScriptUI panel. I have a icon button which is based on an png image I load:

var button = container.add("iconbutton",undefined, imagePath, {"style":"toolbutton"});

The image isn't a perfect square, so it contains transparent pixels. Problem is, when I click the button it gets the focus, and all that is transparent will be AE-blue until it looses focus again.

Is there a way to avoid this? I tried using the "active" property, but that didn't seem to do much.

If I just could control the focus on the button...

Any help is greatly appreciated,

Jakob

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Tomas Sinkunas

Unfortunately, you are in no luck here.

However, there are 2 options you can chose:

1. Either use GitHub - adamplouff/scriptui-battlestyle: Button options for ScriptUI, namely high high-density/retina icon buttons from…

2. Or look into my method of using image as a button instead of an iconbutton https://bitbucket.org/rendertom/_snippets_/src/master/After%20Effects/UI%20-%20Image%20mouseEvents.jsx

Hope that helps.

3 replies

Tomas Sinkunas
Tomas SinkunasCorrect answer
Legend
September 29, 2018

Unfortunately, you are in no luck here.

However, there are 2 options you can chose:

1. Either use GitHub - adamplouff/scriptui-battlestyle: Button options for ScriptUI, namely high high-density/retina icon buttons from…

2. Or look into my method of using image as a button instead of an iconbutton https://bitbucket.org/rendertom/_snippets_/src/master/After%20Effects/UI%20-%20Image%20mouseEvents.jsx

Hope that helps.

Inspiring
October 1, 2018

Thank you Tomas! That helped a lot. Didn't realize you can put mouse events on an image.