Notifications
Clear all

[Closed] changing maxdata directory

 MZ1

is it possible to change maxdata(user data) directory? for example:

C:\Users\Administrator\AppData\Local\Autodesk\3dsMax\2011 – 64bit\enu

to

C:\MyData

5 Replies

The relevant help page is under “3ds Max System Directories” in MAXScript help.

to view your current data path in 3dsmax.ini :


getDir #maxData
"C:\Users\<user>\AppData\Local\Autodesk\3dsMax\2013 - 64bit\ENU\"

to change it:

setDir #maxData <desired path as string>

this overwrites 3dsmax.ini so is persistent

alternatives to max scripting this include:
edit 3dsmax.ini directly
use Customize > Configure Paths
(this is according to help. I can’t find the Customize > Configure Paths menu in Max 2013. Customize > Configure User Paths looks like the menu they mean, but there is no Data directory listed in that interface…)

 MZ1

Maxdata doesn’t change all things that i want. Let me explain what i want, my idea is creating different set of workspace including 3dsmax.ini,cui,kbd,mnu,clr, etc.So i had to create INI and folders like this:

UserData\enu\3dsmax.ini
UserData\Set01\3dsmax.ini
UserData\Set02\3dsmax.ini
UserData\Set03\3dsmax.ini

and run each of them by using 3dsmax.exe and different switches.
Problem is some settings like CustomColor and CustomMenu works ONLY in “enu\3dsmax.ini”.

Look up Pathconfig in the maxscript help. You need to set the #ui directory to handle the clr, kbd, etc as those are managed by the UI directory. You should invest some time to figure out exactly what content you want relocated and how to get to that. Quick sample of what can be set and where it currently exists is:

for val in 1 to 100 do
(
	dirVal = ConvertIntToDirID val
	if dirVal != undefined do format "% : %
" dirVal (getdir dirVal)
)

-Eric

 MZ1

ConvertIntToDirID doesn’t work for me Eric. i’m using max 2011 64bit.
Big part of my challenge is starting max with custom scheme file. I found this in help file:

To start 3ds Max with a custom user interface from the command line:

[ol]
[li]Save your custom UI scheme with a descriptive base file name with the Save Custom UI Scheme dialog.[/li][li]Right-click the 3ds Max icon on the Windows desktop, and choose Properties.[/li][li]In the Target field, change 3dsmax.exe to 3dsmax.exe -c, followed by the name of your .cui file.Example: 3dsmax.exe -c myfile.cui. Be sure to leave a space both before and after the -c.[/li][/ol]But! this way works ONLY for cui file. not other files with same basename. How we can start 3dmax (command-line) with a custom color file?

 MZ1

All files such as MyUI.cui,MyUI.kbd,MyUI.clr,… are in C:\MyUIFolder. and command-line is:

3dsmax.exe -c “C:\MyUIFolder\MyUI.cui”

Where is my mistake?? Why 3dsmax loads only cui file?