How to input a property in a render

Hello, I have a MD simulation during cooling and I’m trying to show the temperature as a text label. I know the cooling rate so I can have a rough estimate using the timestep, but I don’t know if it’s possible to do a math manipulation here. Can I do this?

Hi,

To include dynamic data such as the current temperature in your rendered image, you can do the following:

  1. Define a new global attribute using a Python script modifier as explained in the code example given here.
  2. Reference that global attribute by inputting its name in between squared brackets as a placeholder in a Text Label viewport layer.

Alternatively, you can directly use a Python script viewport layer