Using variables and maths functions in .rad files

There are also examples in the tutorials and in the list archives of using 'cnt' and the Radiance functional language to do all kinds of fun stuff.

Rob Guglielmetti
NREL Commercial Buildings Research Group
Golden, CO 80401
[email protected]


-----Original Message-----
From: Lars O. Grobe [[email protected]<mailto:[email protected]>]
Sent: Friday, August 23, 2013 07:59 AM Mountain Standard Time
To: Radiance general discussion
Subject: Re: [Radiance-general] Using variables and maths functions in .rad files

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.
Radiance-general mailing list
[email protected]