ScriptSpot home

Forum topic · Scripts Wanted

always open layer and material windows on max start

By airbrush · 2013-01-03

Description

Hi,

Is there a way to always open the layers and materials windows on 3dmax start. None of the UI preferences seems to save this.

thx.

Comments (7)
miauu

Glad to help. :)

Reply to miauu
Branko Živković

maybe this can help ;)

(
if LayerManager.isDialogOpen() == false do LayerManager.editLayerByName ""
if MatEditor.isOpen() == false do MatEditor.Open()
)

miauu

Try this(works on my max2012):


(
	actionMan.executeAction 0 "50048"
	macros.run "Layers" "LayerManager"
	
	callbacks.removeScripts id:#testCallback
	callbacks.addScript #filePostOpen "macros.run \"Layers\" \"LayerManager\"" id:#testCallback

)
airbrush

one issue...if i open a scene after starting max the layers panel closes, materials stay open. Is it possible to always remain open?

miauu

Save this as ms file and put it in the maxroot/scripts/startup folder. Then restart max.


(
	actionMan.executeAction 0 "50048"
	macros.run "Layers" "LayerManager"
)