MaxScript Release 0.4 Beta Source FOR MAX 3 (6/18/1999)
Copyright (c) 1999 by Borislav Petrov, Bobo's Rendert**ls.
CUImerge lets you copy toolbars, tabs and colors between
Version 0.4 (6/18/99)
Visual representation of the Color Schemes, and an additional
display to compare them. Each color bar stands for a single UI element.
Implemented a trap for a crash when no Toolbars were
in the list and the Copy button was pressed. There is a respective message
for both toolbars and tabs now.
Extended the tooltips a bit.
Btw, if you still don't know: In R3, you can not only move icons inside the toolbar
using Alt+MouseDrag, but also drag&drop-move icons between different
tabs and toolbars.
This means that, in order to copy an icon from one
CUI to another, you have to first copy the toolbar or tab containing that
icon using the CUI Merge script, then move the icon to a new place using
Alt+Drag, and then delete the toolbar/tab you just copied.
Version 0.3 (5/1/99)
Color Scheme Copy support. The whole color definition
of the Source is copied to the Target.
Also added a backup function - the last CUI you alter
will be saved to BACKUP._UI so you can still recover it if you discover
you have overwritten the wrong one.
Version 0.2 (4/30/99)
When started, it notes the currently loaded
CUI so you can restore it later if you want.
The SAME directory as the currently loaded
CUI is searched for *.CUI files.
All files found are scanned for Toolbars and
CUI, Toolbars and Tabs are listed on both
sides of the floater. The left side contains the "Sources", the right side
(which is identical) is used as "Target".
CUIs are listed alphabetically, the rest is
listed in order of appearance.
Only the active tabs and toolbars are listed
(deleted "dead" bars and tabs still in the CUI file are not listed)
You should select two different CUIs in the
left and right lists. You cannot copy data into the same CUI.
You can copy a Toolbar from the left to the
right selection by clicking the [>] button. You will be prompted if the
name already exists. You cannot OVERWRITE an existing Toolbar or Tab. To
replace, please load the target CUI, delete the respective tab manually
(so you know what you delete!) and then use the script to copy the new
You can load either the "Source" or "Target"
CUI and make it the active CUI using the buttons at the bottom. The middle
button lets you restore the original CUI that was active when you launched
When docked Toolbars are copied, they will
be converted to floaters by default. If you are sure there is no docked
toolbar at the target position you are copying to, you can uncheck the
checkbox "Copy Toolbars as Floaters". The floaters will keep the position
and size of the docked version though.
When you delete Tabs or Toolbars using MAX's
menus, the data is NOT removed from the CUI file. It leaves "Dead bodies"
around, and makes it hard for the script to locate the actual data. When
tabs are copied and more tab definitions are found in the target as specified
by the Tabs count variable in the CUI, the remaining "corpses" will be
removed by the script. For example, you have created and then deleted two
Tabs called "Test1" and "Test2". A look in the CUI shows they are still
present, but the counter just shows two tabs less. If you copy a new tab
"Test2" from another CUI, the two old entries "Test1" and "Test2" will
be removed, the new one will be included, and the counter will be increased.
This will keep your CUI from getting fat.
When a toolbar is copied to a CUI with a "dead"
toolbar with the same name, the latter will be removed. Other deleted toolbars
in the CUI will NOT be removed.
If you change CUI elements manually and save
the CUI using the "Save Custom UI As..." menu, you can update the display
of the utility by pressing the [R] button located between the two CUI lists.