ObjectTable.ModifyRenderMaterial Method (Guid, RenderMaterial)

ObjectTableModifyRenderMaterial Method (Guid, 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)
Syntax
public bool ModifyRenderMaterial(
	Guid objectId,
	RenderMaterial material
)
Public Function ModifyRenderMaterial ( 
	objectId As Guid,
	material As RenderMaterial
) As Boolean

Parameters

objectId
Type: SystemGuid
Id of object to modify.
material
Type: Rhino.RenderRenderMaterial
Material to assign to this object.

Return Value

Type: Boolean
Returns true on success otherwise returns false.
Version Information

Rhino for Windows

Supported in: 6.8
See Also