Hi there, so I've created a mel custom toolbox with some buttons on it, but when I press the button in the mel GUI and then press G on the keyboard to repeat last command it launches the window again instead of repeating last command. Is there some way to trick it so it repeats the last command? This only seems to work when you make a shelf button, but I need it to work with a floating toolbox I've created.
Do you know how the print command works with these types of buttons, I'd like to display a message after the button is pressed, but I can't figure out the syntax.
Replies
for example:
the above code will change the label on the button called 'mybutton' but then will print a message when the button is pressed.