Script for plug in material to rhino material

Hi all
I’m trying to write a script to convert files with V-ray or Octane materials to Rhino Render materials before exporting to real time renders.

Basically, I’m trying to script unchecking the ‘Plug-in’ check box in the material properties.

I’ve dug through the RDK documentation but haven’t come up with the answer.
Does anyone know if there is a way to automate this in python?

Thanks!
David

Hi @David_Moreau,

due to not having a PlugIn i cannot test this, but i found an old macro in a button which i created to set a VRay material back to a Rhino material:

! _Select _Pause _-Properties _Material _Object “Rhinoceros” _EnterEnd

I am not sure if this will retain material properties like color etc. so handle with care!

Edit: There is a RhinoCommon way of setting above using Material.RenderPlugInId. In case you’ll need the PlugInId of the Rhino Renderer in V6 it is:

5dc0192d-73dc-44f5-9141-8e72542e792d

_
c.

1 Like

Thanks you so much!

This gets me on the right path.

-David