Material conversion challenge

I have several Rhino scenes in vray 2 with dozens of 2d cutout people that were created using the picture frame command. The command makes it very easy to create the figure directly with the aspect ratio of the png image. I use this method rather than creating a vray material for each figure because that means to make a plane, apply the material and adjust the proportions every time.
When rendering, vray version 2 respects the transparency of the Piicture Frame even though it’s just a Rhino material and not a vray material.
The problem is that now I’m using vray 3 and it doesn’t support the transparency of picture frames. So for each figure I need to:

  1. Create a new material
  2. Remove the BRDF layer that comes by default and create a new diffuse layer
  3. Choose the png and enable the option “use color texture as transparency”.
  4. Create a vertical plane with the same aspect ratio of the png and apply the material.
    Obviously to do this for dozens of 2d figures is a p.i.t.a.

vray has the command visConvertRhinoMat which would allow me to select all the figures at once and make the conversion to vray material but the problem is that it creates them as BRDF so it doesn’t help because I still need the diffuse layer to be able to turn the transparency on.
Also the automatically assigned name is “Picture Frame”. So when I select multiple 2d figures and run the command I end up with dozens of materials with similar name “Picture Frame”, “Picture Frame1”, “Picture Frame2”, etc. and I cannot tell which one corresponds to what 2d cutout.
I’d like to have a script that takes the png filename as the name for the converted vray material, adds a new diffuse layer with the same png file and enables “use color texture as transparency” . Is this possible?

Maybe you could do it with Grasshopper and G-Ray plugin…


Thanks Jonas but I don’t own either.


If you have Rhino, you have Grasshopper.
And I think he meant to type V-Ray, not G-ray…

I’ve never used Grasshopper. I wouldn’t know how to approach what I’m after …

Juan, then go on, the night is young, look up some tutorials on the internet and start learning! It makes your work so much easier. :slight_smile:


1 Like

Thanks, I might give it a go :slight_smile:

@Jarek , @clement any suggestions for a script in the meantime ?

Hi Juan,

sorry, i’m still having VfR2 so i cannot help. Maybe we should add @mnewberg here and he knows a way to solve it programmatically ?


Thanks @clement

PROBLEM SOLVED. Everything works as it should.
I lil embarrassed to admit my ignorance not being aware of the “AlphaTransparency=yes” option available when creating the PictureFrames. My apologies. :flushed: