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

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Fri Aug 23 07:39:43 PDT 2013


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
robert.guglielmetti at nrel.gov

-----Original Message-----
From: Lars O. Grobe [grobe at gmx.net<mailto:grobe at gmx.net>]
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
Radiance-general at radiance-online.org
http://www.radiance-online.org/mailman/listinfo/radiance-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20130823/d58743da/attachment.html>


More information about the Radiance-general mailing list