Setting Color Palette Values for Gradient Upon Model Complete

Setting Color Palette Values for Gradient Upon Model Complete

iceagesimulator
Contributor Contributor
83 Views
1 Reply
Message 1 of 2

Setting Color Palette Values for Gradient Upon Model Complete

iceagesimulator
Contributor
Contributor

[ FlexSim 23.2.3 ]

I am wondering if I am able to set the color palette values for defining a gradient after a model run is complete.

  1. I want the red color to be a maximum value that is determined by looking up the maximum value from a table column (upon model completion)
  2. The yellow color will be half the maximum value
  3. The green color will always be a hard coded 0.

Is there a way to have the color palette values be global variables?

The image below has a maximum value of 0.3, but I had to manually look up this maximum value from my global table column after the model was ran once. I want this maximum value for the red color to be set automatically.

image.jpg


0 Likes
Accepted solutions (1)
84 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution
treenode colorNodes=getvarnode(Tools.get("ColorPalette","ColorPalette1"),"colorNodes");
colorNodes.last.value=0.3;
0 Likes