PDA

View Full Version : Maya QT Interface Designer


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.

ArrantSquid
06-19-2010, 12:34 AM
Well my workaround is to create a button and then change it's position to -100 for both x and y, and then use a signal to trigger the click of that button (thus sending the command that's assigned to that button to trigger the mel). It's ugly, but it works. If anyone does figure out how the menu system works in maya/mel I would appreciate hearing about it.

CGTalk Moderation
06-19-2010, 12:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.