[Closed] open max file,how to change default layer ?
I met a problem
When i saved max file and exit max ,Current layer is “a” .But when i open the file ,The current
change default 0 .Why ?
My question is when i open the file
current layer is “a” that i want . How to do ?
I think that the only way you’re going to do this is to add a variable, through custom attributes, to your root node that stores the index to the current layer, which get’s updated each time the file is saved (Using a callback). You’ll need another callback which acts each time a file is opened which sets the current layer to the one saved in the root node.
It’s trouble, Who has a simple way ?
I thank When I open max file ,max can run a code , Collect current layer
This code put max\script\startup folder, Every time run max ,code can run.
But question is code can run at first time run max
If you open second file , code can’t run ,I don’t know reason.