Interfaces > Core Interfaces > SME |
The SME Core Interface introduced in 3ds Max 2011 exposes properties and methods related to the Slate Material Editor.
Get/set the Slate Material Editor's active View.
Opens the Slate Material Editor.
Closes the Slate Material Editor.
Returns true if the Slate Material Editor is open, false if it is closed.
Returns the number of Node Views as an integer.
Creates a new Node View with the given name and returns its index.
Returns an IObject:IFP_NodeViewImp object representing the indexed Node View.
Returns the index of the given Node View IObject:IFP_NodeViewImp object.
Returns the index of the named Node View.
Deletes the indexed Slate Material Editor view.
If the second argument is true, prompts the user for confirmation, otherwise deletes the view without prompting.
Sets the current material into the Parameter Editor of the Slate Material Editor.
Returns the material set for editing.
Returns an WndBase Interface to the Slate Material Editor's Navigator.
Returns an WndBase Interface to the Slate Material Editor's Material Pool.
Returns an WndBase Interface to the Slate Material Editor's Parameter Editor.
Returns an WndBase Interface to the Slate Material Editor's Main Frame.
<maxObject>sme.DoMtlBrowseDlg <HWND>parent <DWORD>flags <&boolean>newMat <&boolean>cancel newMat is In and Out parameter cancel is In and Out parameter
Opens a modal Material/Map browser dialog.
The first argument is the window handle of the parent window, use 0 for none.
The second argument is a flags value controlling the display of materials and maps in the dialog. Possible Flag values are:
1,5,9... - Materials, Sample Slots
0,3,7,11... - Maps, Materials, Sample Slots
The third by-reference argument will contain true if a new material was created, false if an existing one was picked.
The fourth by-reference argument will contain true if the Cancel button was clicked, false if the OK button was clicked.
Get/set the name of the Node View.
Returns the number of nodes in the View.
Returns an Interface to the indexed node from the View.
Returns the Interface to the given node reference.
Creates a new node from the given maxObject reference at the specified position.