RhinoCommon API
ObjectTableModifyRenderMaterial Method (RhinoObject, RenderMaterial) |
Modifies an object's render material assignment, this will set the
objects material source to ObjectMaterialSource.MaterialFromObject.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool ModifyRenderMaterial( RhinoObject obj, RenderMaterial material )
Public Function ModifyRenderMaterial ( obj As RhinoObject, material As RenderMaterial ) As Boolean
Parameters
- obj
- Type: Rhino.DocObjectsRhinoObject
Object to modify. - material
- Type: Rhino.RenderRenderMaterial
Material to assign to this object.
Return Value
Type: BooleanReturns true on success otherwise returns false.

Rhino for Windows
Supported in: 6.8