[Closed] Material editor layout ?
Hi all,
Is there a way to Get/Set the Material editor layout ?
(3×2, 5×3,6×4 sample windows)
been looking all around with no luck
Thanks for any infos.
I was unable to find any maxscript interface but there are macros fo this thing try this
actionMan.executeAction 0 "50048" -- Tools: Material Editor
actionMan.executeAction 2 "40293" -- Material Editor: Cycle 3X2, 5X3, 6X4 Sample Slots
Hope this helps
Mobeen
To get the setting you can use:
currentMatLibZoom = getINISetting ((GetDir #maxroot) + "\\3dsmax.ini") "MtlEditorPosition" "ZoomLevel"
if currentMatLibZoom == "0" then print "3 X 2 Sample Windows"
else if currentMatLibZoom == "1" then print "5 X 3 Sample Windows"
else if currentMatLibZoom == "2" then print "6 X 4 Sample Windows"
Using the setINISetting command changes the value in the ini file but does not update the material editor, closing and reopening does not help either.
I think you can achieve what you want combining mobeen and blue’s methods.
Say you want to set the sample windows to 5×3:
You first change the ini setting to 0, and then call this:
actionMan.executeAction 2 “40293” – Material Editor: Cycle 3X2, 5X3, 6X4 Sample Slots
So this will change the sample windows to the next value, which is 5×3.
Light