Hi Folks!
Recently i saw one 3Dmax script "Quickselection" here from Martin Breidt.
And it create one toolbar button with dropdown menu, its activates left mouse button.
My qestion is, is that bossible make my own customizable toolbar button, with that menu?
Example, if i click button, then dropdown menu shows me list of my commonly used menu items like
(Button)
----------
Save File
Undo
Redo
Rename
Array...
----------
Point is, that i can close top of 3Ds Max menubar, for extra space.
I hope i was enough clear, and i think its bossible, but not with google!
Comments (5)
Comment policy
Thank you Miauu!
Everything is working. Im satisfied right now.
But is there way, add submenu items?
(
(
rcMenu rcMapSize
(
menuItem Ava "Open"
menuItem Tagasi "Undo"
menuItem QuadCap "QuadCap"
on Ava picked do max file open
on Tagasi picked do max undo
on QuadCap picked do fileIn ((getDir #userScripts)+"\\Menu\\rapidQCap.mse")
)
rcPos = mouse.screenpos
popUpMenu rcMapSize pos:rcPos align:#align_topcenter
)
)
)
.
.
Download this script: https://miauu-maxscript.com/portfolio-item/miauu-set-grid-spacing-free/
And modify it to fit your needs.
Thank you!
I think that would work for me, and I test later on. But i really like, if that menu pops-up just one toolbar button. Is that some how bossible. I try later mix two scripts. i hope, that no cause problems with you and mr.Breidt.
Actual script is:
macroScript QuickSelectioncategory:"MB Tools"
(
-- dynamically build RCMenu + event handlers
numSels = getNumNamedSelSets()
-- get all named selections and sort them alphabetically
sel_list = #()
for i = 1 to numSels do (
append sel_list (getNamedSelSetName i)
)
sort sel_list
-- build menu
i = 0
menustr = "RCMenu QuickSelsubMenu (\n"
append menustr ("menuItem m_title \"QuickSelection v1.2\" enabled:false\n")
append menustr ("separator sep0\n")
-- collect named selection sets
for selname in sel_list do (
itemname = "m" + (i as string)
selstr = "selectionSets[\"" + selname + "\"]"
append menustr ("MenuItem " + itemname + " \"&" + selname + "\"\n")
append menustr ("on " + itemname + " picked do ( select " + selstr + "; unhide " + selstr + " )\n")
i += 1
)
-- add copyright entry
append menustr ("separator sep1\n")
append menustr ("menuItem m_extra \"© '03 martin@breidt.net\"\n")
append menustr ("on m_extra picked do ( ShellLaunch \"mailto:martin@breidt.net\" \"\" )\n")
append menustr (")\n")
QuickSelSubMenu = execute menustr
-- show popup menu
popUpMenu QuickSelsubMenu
)
.
Just use this:
and the RCMenu will appear under the mouse cursor. If you want to run it via toolbar button the rc menu will appear over the button(where you click with the mouse cursor).
"i hope, that no cause problems with you and mr.Breidt."
Just give credits to the guys whose scripts you use to build your own tool. :)