ArrantSquid
06-17-2010, 10:49 PM
Hey everyone. I've started porting some of my mel scripts over to Maya 2011 and wanted to port my interfaces to the new QT one because QT looks nice and I figured it'd be a good move. I've run into an issue though and I feel like it's something I should know, but I just can't figure out.
I'm attempting to add a menu bar so I can have a "reset settings" "about" etc menu. I've got the menu bar and the entries, but I can't figure out how to call a command to actually pop up a new window when it's clicked or even assign a command to it in the mel. I have my procedure for the mel to reset the settings and when I assign it to a button, it works fine, but when I attempt to do the same thing using the menuBar I can't get it to work. I may be able to workaround it by making a 0x0 button and assign a signal to the menuBar to send it to that button, but that seems like a hack instead of the proper way to do it.
Any input is appreciated and I apologize if it's a "lame" question.
I'm attempting to add a menu bar so I can have a "reset settings" "about" etc menu. I've got the menu bar and the entries, but I can't figure out how to call a command to actually pop up a new window when it's clicked or even assign a command to it in the mel. I have my procedure for the mel to reset the settings and when I assign it to a button, it works fine, but when I attempt to do the same thing using the menuBar I can't get it to work. I may be able to workaround it by making a 0x0 button and assign a signal to the menuBar to send it to that button, but that seems like a hack instead of the proper way to do it.
Any input is appreciated and I apologize if it's a "lame" question.
