PDA

View Full Version : Where does it store the *.cui path


butterbr0t
06-30-2011, 10:16 AM
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

lanimal
06-30-2011, 11:02 AM
hi, you can have the cui file path using ( cui.getConfigFile() )
you use colorman interface for retrieve color file ( colorman.getColorFile() )
hope this help

spacefrog
06-30-2011, 12:14 PM
just check this


cui.getDir()


more from this in the maxscript docs

http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-A726F335-2CB0-4B65-B9A3-F546888C0A4-1910.htm,topicNumber=d28e653512

butterbr0t
06-30-2011, 01:40 PM
great, thanks! It seems modifying the INI file is not that good of an idea. It only includes paths for .kbd, .mnu and .clr, but not for .cui, .qop and .bpr files. Also for some strange reason, the .kbd file does not seem to get updated in max if I change the path inside the INI. And using UI schemes, which I somehow overlooked before, I am not sure if what I try to do is worth the effort :D as often! learned some things anyway, so no waste
cheers

CGTalk Moderation
06-30-2011, 01:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.