Click or drag to resize

RenderPlugInOnCreateMaterial Method

This function is called by the Object Properties and Layer Control dialogs when the "New" button is pressed in the "Material" tab. This is only called if EnableCreateMaterialButton returns true.

Namespace:  Rhino.PlugIns
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.12
Syntax
public virtual bool OnCreateMaterial(
	IntPtr parent,
	RhinoDoc doc,
	ref Material material
)

Parameters

parent
Type: SystemIntPtr

[Missing <param name="parent"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnCreateMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

doc
Type: RhinoRhinoDoc

[Missing <param name="doc"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnCreateMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

material
Type: Rhino.DocObjectsMaterial

[Missing <param name="material"/> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnCreateMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Rhino.PlugIns.RenderPlugIn.OnCreateMaterial(System.IntPtr,Rhino.RhinoDoc,Rhino.DocObjects.Material@)"]

See Also