Max2010+ Hack Your Toolbar

So a while back I was having some issue with the way my main toolbar was handling a particular button (Particle View Toggle, if you were curious) So I decided to dig into the CUI file. Well it seems it was not “all for not” more than a couple people have asked “I want my Undo/Redo back!” So here it is :) You can of course just load the max2009UI.cui and loose you entire layout and any other customizations…besides what fun is that anyway :D

YMMV, not responsible if your s*^t f*@ks up, so make a backup. I will basically describe how to hack in a new toolbar via text. NOTE:First if you want the Undo/Redo right-click menus you can only have one instance of each button or it won’t work.

First start max, open the CUI dialog and remove the Undo/Redo buttons from the “QuickBar”, and save (should default to MaxStart.cui)

Open the new MaxStart.cui in an editor.

The first lines of the MaxStart.cui should look something like this:

Code:

[CUIData]
WindowCount=11
[CUIWindows]
F000=S:Command Panel
F001=T:Main Toolbar
F002=T:Axis Constraints
F003=T:Layers
F004=T:Extras
F005=T:Render Shortcuts
F006=T:Snaps
F007=T:Animation Layers
F008=T:Containers
F009=T:MassFX Toolbar
F010=T:RealFlow

You want to add 1 to the “WindowsCount” since you will be creating a new toolbar. So in this case it will read “WindowsCount=12″

In the next section you need to create a entry for the new toolbar, use “F011=T:Undo/Redo”

Now it should look like this:

Code:

[CUIData] WindowCount=12
[CUIWindows]
F000=S:Command Panel
F001=T:Main Toolbar
F002=T:Axis Constraints
F003=T:Layers
F004=T:Extras
F005=T:Render Shortcuts
F006=T:Snaps
F007=T:Animation Layers
F008=T:Containers
F009=T:MassFX Toolbar
F010=T:RealFlow
F011=T:Undo/Redo

 

The next step is inserting the actual button code. This configures the new toolbar and insert the buttons.
Now go to the bottom of the .cui file and paste this in and save:

Code:

[Undo/Redo] Rank=0
SubRank=0
Hidden=0
FRect=1109 212 1181 271
DRect=0 0 77 39
DRectPref=2147483647 2147483647 -2147483648 -2147483648
DPanel=1
Tabbed=0
TabCt=0
CurTab=-1
CurPos=1 0 0 77 39
CType=1
ToolbarRows=1
ToolbarType=3
ItemCount=2
Item0=0|0|0|50034|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|0
FlyOffCt0=0|-1|0|3
Item1=0|0|0|50035|0|31|-1|-1|-1|-1|0|0|0||Maintoolbar|2
FlyOffCt1=0|-1|0|3

You can now load the new MaxStart.cui from the CUI dialog toolbars tab. You should now have a new toolbar labeled Undo/Redo in the right-click maintoolbar menu and a new Undo/Redo Toolbar

And there you go Undo/Redo

No comments yet.

Leave a comment