Notifications
Clear all

[Closed] How to find the maxscript identity for included utility buttons?

There are many utilities in the utility panel. Is there any way to set a hotkey to activate any of them? or How can I find out where the script is to control the existing ones? I can use

UtilityPanel.OpenUtility <name of utility>

but once it is open, how can I press any buttons there through maxscript?
Can I query the utility to find out the maxscript name of any buttons? Once I have the name, I think I can enable the button. From there I can put it to a hotkey.

Thanks for any insight into this!

2 Replies
1 Reply
(@bobo)
Joined: 1 year ago

Posts: 0

Nope, unless the Utility is exposed via some Interface (few shipping utilities are), you are out of luck. Utilities are the simplest form of a MAX plugin – they have access to scene data, but do not “live” in the Max scene as most other plugin types, and were never designed to be accessible to MAXScript. (In fact, MAXScript itself was initially a Utility back in Max R2).

Thanks Bobo. I found a solution, after opening the dialog, I use a program called “Smack” that can play any mouse function using a hot key. So I record a mouse movement of clicking to the button, then set a hotkey for that. Anytime I want to hit the button I use the hotkey, and it works instantaneously at the high speed setting.

the demo can record up to 5 seconds of mouse or keyboard movement

the demo version of Smack is at:
http://www.cpringold.com/