We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General

General

In EnSight, how to output the RGB values of each of the levels of a palette assigned to a variable?

    • FAQFAQ
      Participant

      By using the following python script, one can print out the RGB values of each of the levels of a palette hat is assigned to a specific variable from ensight.objs import * for v in core.VARIABLES: if v.DESCRIPTION==’Density’: print v.PALETTE[0].LEVELS_AND_COLORS There will be a list that is output which contains 5 numbers for each of the levels. These numbers indicate the Level Value, Red Value, Green Value, Blue Value, Alpha Value respectively of each of the levels.