PDA

View Full Version : Closing a custom floater with a shortcut \\ Custom Icons


CarlCampbell
04-16-2007, 04:22 PM
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!

Zbuffer
04-16-2007, 05:02 PM
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 24x24 and one for 16x16
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

CGTalk Moderation
04-16-2007, 05:02 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.