if statement with vwrays

Hi there
I'm trying to get the hang of the syntax using an if statement with the
following command

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d zoomsomeRender.pic`
-oodLpnsm testroom.oct > rays.txt

but only output the rays that hit the surface called greenbox.
Is it something like

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d zoomsomeRender.pic`
-oodLpnsm `if(s='greenbox')` testroom.oct > rays.txt

Thanks for any help

Tarik

···

--
Tarik Rahman
PhD student, Institute of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d zoomsomeRender.pic`
-oodLpnsm `if(s='greenbox')` testroom.oct > rays.txt

Look at the HOWTO section in the Radiance Wiki:

http://www.radiance-wiki.org/index.php?title=HOWTOs

Speaking of...looks like the radiance wiki is now a link spam target. Hmmm.

Chris

you can use grep, ie

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d
zoomsomeRender.pic`
-oodLpnsm `if(s='greenbox')` testroom.oct | grep "surface_name" > rays.txt

···

----- Original Message -----
From: "Tarik Rahman" <[email protected]>
To: "Radiance general discussion" <[email protected]>
Sent: Tuesday, February 08, 2005 4:02 PM
Subject: [Radiance-general] if statement with vwrays

Hi there
I'm trying to get the hang of the syntax using an if statement with the
following command

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d

zoomsomeRender.pic`

-oodLpnsm testroom.oct > rays.txt

but only output the rays that hit the surface called greenbox.
Is it something like

./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d

zoomsomeRender.pic`

-oodLpnsm `if(s='greenbox')` testroom.oct > rays.txt

Thanks for any help

Tarik
--
Tarik Rahman
PhD student, Institute of Perception, Action and Behaviour
School of Informatics
University of Edinburgh

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general