Message 1 of 5
Custom UI containing flyout buttons (3ds Max 2015)

Not applicable
05-25-2017
08:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a custom toolbar containing macro buttons. I want to modify it slightly to merge some of the macro buttons into a flyout button. I can create a flyout button but the macros don't work when I select any of the buttons. I copied the format of a CTB_PUSHBUTTON in the generated xml (.cuix file) and just replaced the type with CTB_MACROBUTTON.
- I want to know if this is even possible?
- or do I have to stick with using push buttons for flyouts?
- If I do have to stick with push buttons, how do I get each button to execute my custom MaxScript logic? I notice that existing ones reference a controlID, but I can't find what the existing IDs refer to.
I was reading this post about customising UIs where @Alfred.DeFlaminis indicated that it was possible to create custom flyouts.
Below is a cut-down version of my toolbar for demo purposes:
<Window name="EoinsCustomToolbar" type="T" rank="0" subRank="0" hidden="0" dPanel="0" tabbed="0" curTab="-1" cType="1" toolbarRows="1" toolbarType="16"> <FRect left="668" top="453" right="1228" bottom="519" /> <DRect left="2147483647" top="2147483647" right="-2147483648" bottom="-2147483648" /> <DRectPref left="2147483647" top="2147483647" right="-2147483648" bottom="-2147483648" /> <CurPos left="668" top="453" right="1228" bottom="519" floating="1" panelID="16" /> <Items> <Item typeID="2" type="CTB_MACROBUTTON" width="0" height="0" controlID="0" macroTypeID="3" macroType="MB_TYPE_ACTION" actionTableID="647394" imageID="-1" imageName="" actionID="Non_Flyout_Macro" tip="" label="" /> <Item typeID="0" type="CTB_MACROBUTTON" controlID="-1" helpID="0" orientation="31" captionVisibility="0" macroTypeID="3" macroType="MB_TYPE_ACTION" actionTableID="647394" actionID="DEFAULT_MACRO_TO_EXECUTE" iconFilePrefix="CustomToolbarIcons" iconImageIndex="3"> <FlyOffCt flyInit="0" flyTimeout="300" flyDir="3"> <Fly actionID="DEFAULT_MACRO_TO_EXECUTE" iconFilePrefix="CustomToolbarIcons" iconImageIndex="3" /> <Fly actionID="ANOTHER_MACRO_TO_EXECUTE" iconFilePrefix="CustomToolbarIcons" iconImageIndex="30" /> <Fly actionID="YET_ANOTHER_MACRO_TO_EXECUTE" iconFilePrefix="CustomToolbarIcons" iconImageIndex="4" /> </FlyOffCt> </Item> <!-- Other Macro Buttons and Spacers --> </Items> </Window>
Thanks,
Eóin