Access selected node in Slate Material editor

Access selected node in Slate Material editor

Anonymous
Not applicable
3,929 Views
5 Replies
Message 1 of 6

Access selected node in Slate Material editor

Anonymous
Not applicable

Hi everyone, 

Using maxscript, I would like to access / modify properties of the selected node in the slate material editor.

I would do simple things like changing the name of the selected bitmap or selected material.

I didn't find anything in maxscript help.

I don't know if slate material editor is accessible via maxscript or if autodesk blocked it for the moment.

Can somebody help me ? 

Thanks ! Access_Slate_Current_Node.png

 

0 Likes
Accepted solutions (2)
3,930 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Accepted solution

You should check out the SME Interface.
Documentation for 3dsMax 2018

0 Likes
Message 3 of 6

michaelsonbritt
Advocate
Advocate
Accepted solution

Try this:

((sme.getview 1).GetSelectedNodes())[1].reference

To see how this was determined, see the attached is a screenshot.  It shows a script log, with the steps used and some comments on the left.  Just took a couple minutes to find the exposure by poking around.

Cheers,

Michaelson Britt

Message 4 of 6

Anonymous
Not applicable

Thanks a lot michaelsonbritt !

That's exacly what I needed !  

Message 5 of 6

Anonymous
Not applicable

Thanks alexcgt !

Seems like I didn't search too well in autodesk documentation.

Sorry about that.

Thanks ! 

 
0 Likes
Message 6 of 6

dmitriy.shpilevoy
Collaborator
Collaborator

That was some MAX CSI detective work, thank you for posting the process.

0 Likes