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

How to access a constant or a variable in an EnSight script?

    • FAQFAQ
      Participant

      In order to access a constant or a variable, it must be active. In the GUI you activate it by checking the activation box in the “tree”. From a script you do the same by using ensight.variables.activate(“Name_of_constant_or_variable”) In the next step, you can then access it with ensight.ensvariable(“Name_of_constant_or_variable”)[0] For transient cases, it’s only necessary to activate the variable once. Then access it from within a loop over all time steps.