-
Disappearing ScriptUI elements in docked panel problem
Hello,
Im facing the following issue. I wrote a script where you input a #HEX color and it pops a little square with that color… you can add a whole bunch of them.
The problem is that when I open the “Color Picker” or “Make a New Comp” window is open… all of the colored squares disappear until that window is closed.
Here is a before and after opening the “New Comp” menu…

Are there any solutions so that the colored box doesn’t disappear?
//how the button is createdbrn.onClick
var box1 = PalGroup.add("group", [0,0,30,30] , 'Box' + suffix.toString()); //Adding a box
var graphic = PalGroup.graphics; //PalGroup is the group where all the boxes pop in...
var Brush1 = graphic.newBrush(graphic.BrushType.SOLID_COLOR, hexToRgb); //creating the brush
box1.graphics.backgroundColor = Brush1; //assigning the brush to the Box