algorithmic modeling for Rhino
I am trying to render a mixfunc material which uses the "perforate.cal" cal file and applies perforations in the y-direction to a plane with the metal material "aluminum"
I have the perforate.cal file in the Radiance/lib folder
Everything works fine when i assign materials directly to the "CreateHBSrfs" component, such as:
void metal aluminum
0
0
5 0.8 0.8 0.8 0 0.0
But when i connect the mixfunc, i get an error when i run the simulation.
void mixfunc y_perforation
6 aluminum void y_hole perforate.cal -s 0.1
0
1 0.5
error is:
[KeyNotFoundException]: Void
...Does not seem to be able to find something
I want to make sure i am defining the materials appropriately in HB
Any suggests, as always, APPRECIATED !
(file attached)
Tags:
Replies are closed for this discussion.
Hi,
I didn't open your file but I have two suggestions based on the material definition that may help:
1. I think you cannot pass void as one of the materials. If you want to create a perforated metal then I you can create a glass with 100% trans. and pass it as the first material.
2. Make sure to copy perforate.cal to the study folder or give it the full path
void mixfunc y_perforation
6 aluminum airGlass y_hole c:/radiance/lib/perforate.cal -s 0.1
0
1 0.5
Hi mohamed. Hard to tell. Can you upload your [simplified] file?
Hi Mostapha,
Here you go...
Thanks
Hi M0hamed. I assume it's very late to reply to this but just for the reference you're passing trans as vname which should be a number between 0-1.
thank's
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by