ScriptSpot

Forum topic · General Scripting

DropDownList Button ( like the snaps on )

By NikNok · 2016-09-26

Description

Hello all,

I have a UI button that execute a command / script / or function (custom render) on a leftclick (simple MS macroscript UI drag n drop button) so far so basic and simple ... but I'd like it to have on long leftclick a dropdown button menu that changes button icon and function executed by the script and on rightclick a popup with options for modifying the render options ( exactly like the snaps button, the one with the magnet)

something like :

on button longleftclick do
(
dropdown override preset 1 to n ( with n icons under column form )
)

on button (selected preset n) rightclick do
(
popup "preset n override options" rollout
checkboxes, spinners and all that, that changes render parameters
on settings change do
(
asssign changed param to preset n
)
createdialog etc ...
)

on button leftclick do
(
render with "n selected preset override options"
)

I think I may be able to figure out all the "change render settings part" but I couldn't find anything on the "snaps style" button menu.

Maybe it needs to be a plugin or is that possible with maxscipt ?

Thanks guys.

Comments (3)

NikNok · 2016-11-22

No one has any ideas about this ?

Nice

toothpick · 2016-12-02

Very nice