Notifications
Clear all

[Closed] Right Click Toolbar Button Customization??

Not sure if this is possible, but I wanted to create custom dialog boxes that pop up when you right click on a custom toolbar button similar to right clicking on any of the transform buttons.

Does anyone know the best way to do this?

2 Replies

Hi,

No, I don’t think this is possible since the right-click is assigned by MAX to customize/edit the button/toolbar

but you can use the SHIFT key:

macroscript TEST
 category:"Test"
 buttontext:"Test"
 (
 	on execute do
 	(
 	 if keyboard.shiftPressed then
 		(
 			print "SHIFT pressed"
 		)
 		else
 		(
 			print "Nothing pressed"
 		)
 	)
 )

Thanks for the reply. Thats too bad though if thats the case. Would be nice if there was a callback or something you could use to override that menu and run your own function instead… Anyone else got any ideas?