Notifications
Clear all

[Closed] Closing a custom floater with a shortcut \\ Custom Icons

Hi all!

I’m having tons of fun using lots of cool Maxscripts I’ve been collecting lately, although I seem to be have a small problem…
In this case I’m using The Onion (layer manager) and although I CAN locate it in customize UI and assign a keyboard shortcut to open it, I can’t seem to close the floater with the same shorcut again like one would do with the material editor by tapping ‘M’. How can I make it so that a keyboard shortcut both opens and closes a floater?

I’d also like to know how to properly prepare custom Icons so that MAX indexes them correctly in the ‘customize button appearance’ list.

Cheers!

1 Reply

Hi,

windows in MAX can be closed with ALT-F4 (they must have focus)
else
if you want a toggle button like the Material editor, you need to code a ‘on ischecked’ handler,
inside the macroscript.

for icons you must have 2 versions: one for 24×24 and one for 16×16
each of them must have a color and mask file.
so you end up with4 files:
Myicons_24i.bmp (24 pixels size color)
Myicons_24a.bmp (24 pixels size alpha)
Myicons_16i.bmp (16 pixels size color)
Myicons_16abmp (16 pixels size alpha)

note: each file must have the same number of icons

look in the UI/icons folder for examples