question

Martin K5 avatar image
0 Likes"
Martin K5 asked Felix Möhlmann answered

How to update a box visuals?

Hi,


I would like to ask about the box's color value. After changing this value to reduce the color intensity, the visuals remain the same. I'm not sure what else to do to make it affect the visual appearance.

I use the following code:

Object box = Model.find("Queue1/Box1");
box.color.a = 0.1;
FlexSim 23.2.1
codecolor change
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Flowitems by default do not have an alpha value node for their color. You can go into the tree of the Box in the Flowitem Bin and add it manually, or simply change the alpha value of the Box in the Flowitem Bin which should add the code.

capture1.png

Afterwards your code should work.


capture1.png (10.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.