Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access selected node in Slate Material editor

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Anonymous
2945 Views, 5 Replies

Access selected node in Slate Material editor

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

 

5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

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

Message 3 of 6
michaelsonbritt
in reply to: Anonymous

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
in reply to: michaelsonbritt

Thanks a lot michaelsonbritt !

That's exacly what I needed !  

Message 5 of 6
Anonymous
in reply to: Anonymous

Thanks alexcgt !

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

Sorry about that.

Thanks ! 

 
Message 6 of 6

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report