Change color backface/material in shaded or rendered display mode c#

Hi all,

I’m trying to programmatically set the backface color of al objects. So far I’v found this setting with which I seem to be able to toggle the ability to set the color. But I cant find the property to also set the color.
On the rhinocommon page I can find this property:

public Guid BackFaceMaterialId {get|set}

However this doesn’t seem to be exposed at the moment.

Would this be the correct property to set color and material? Or is there another method?

kind regards Reinder

Hi @r.weenink,

Are you just looking to change the backface color of a display mode, or something else?

image

– Dale

Hi Dale,

Exactly the backface color setting in your picture.

Outlook-e5uxk4xg.png

Hi @r.weenink,

I see this is not possible in RhinoCommon yet. I’ve logged a request.

https://mcneel.myjetbrains.com/youtrack/issue/RH-81831

Thanks,

– Dale

RH-81831 is fixed in Rhino 8 Service Release 8 Release Candidate 1. Please test it out.

Hi Dan,

Thanks for the message.

Which version is this?

Kind Regards,

Reinder Weenink

@r.weenink - none of the above.

This has been implemented in Rhino 8.8. I don’t see a pre-release 8.8 NuGet package yet.

– Dale