[Radiance-general] Using variables and maths functions in .rad files

Lars O. Grobe grobe at gmx.net
Fri Aug 23 05:36:18 PDT 2013


Hi Michael,

you can use xform for most cases, but a very generic approach is to use !echo "$myVariable". You just have to export the variable before calling a Radiance command parsing the file. All lines starting with ! are expanded when the scene is parsed, so this is a generic method to include any text (which can be parameters for materials, geometries, complete Radiance scene objects).

Cheers, Lars.


More information about the Radiance-general mailing list