ScriptSpot

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 · 2013-01-04

Glad to help. :)

barigazy · 2013-01-04

maybe this can help ;)

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

Try this(works on my max2012):

miauu · 2013-01-04


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

)

airbrush · 2013-01-04

that did it....thanks again

airbrush · 2013-01-04

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 · 2013-01-03

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"
)

airbrush · 2013-01-04

perfect...thank you!