Textures in EnscapeRenderMaterial

In my C# based Rhino plugin, I am interested in finding out the file paths of the textures used in Materials. In Rhino materials, I can look into the slots to find the textures but how can I do that for an Enscape Material?

I looked at the type of the Enscape material and it is Enscape.Rhino.Plugin.Materials.EnscapeRenderMaterial. Is there any API that I can use to work with this Enscape object?

Any thoughts on this?

Hi @devang_chauhan , in this regard you should be able to call enscapeMaterial.SimulateMaterial (an official Rhino API method: https://developer.rhino3d.com/api/rhinocommon/rhino.render.rendermaterial/simulatematerial) on any corresponding Enscape material of your choice to achieve what you’re looking for.

In case we’re missing anything or you have any further questions please let us know anytime.

Hi Damian,

Can you share a code sample or pseudocode to find the path of the textures used by an Enscape material?

I figured this out. What Damian means is enscapeMaterial.SimulatedMaterial

https://developer.rhino3d.com/api/rhinocommon/rhino.render.rendermaterial/simulatedmaterial

Hi Devngc,

would you be available to share a little more code that you used to resolve your issue?

I am looking to do something similar too.

Thank you in advance.