ScriptSpot

Forum topic · General Scripting

Where does it store the *.cui path

By br0t · 2011-06-30

Description

Hey,
I am writing something to easily port all UI stuff from one max install to another. I found out that the current .kbd, .mnu and .clr files which are loaded at max startup are stored as pathnames in the 3dsmax.ini at e.g.:
C:\Users\YourName\AppData\Local\Autodesk\3dsMaxDesign\2012 - 64bit\enu\UI

So I can get and set those values easily. Anyway, there is the .cui file that is missing in the ini. It is used to save toolbars and quads, so kinda most important. Does one of you guys know where the current .cui filepath is stored to? I dont mean the file itself, I just want to tell 3ds Max to load the new copied .cui file, that my script creates, at startup (e.g. by creating an ini setting)

Cheers

Comments (2)

Hi Br0t

Anubis · 2011-06-30

Usually the .cui files s'd be there (\enu\ui) but the user can save them anywhere he like, so no fixed location. To load your .cui just:

maxOps.loadCUIFile "MyCUI.cui"

or

cui.setConfigFile "MyCUI.cui"

br0t · 2011-06-30

Hey thanks. I got similar response on cgtalk, and I somehow had to realize that I am wasting my time^^ saving a UI scheme and loading that manually on a fresh max install is actually pretty fast enough. Learned some stuff about DOSCommand on the way, so still worth it ;)