Digital humans the art of the digital double
Ever wanted to know how digital doubles are created in the movie industry? This course will give you an insight into how it's done.
# 1 15-12-2011 , 10:09 PM
Registered User
Join Date: Dec 2011
Posts: 4

python question re: exporting

Is it possible to write a python script that opens (when a gui button is pressed) the "export selection" dialogue box? Basically I just need to create a shortcut so that a user wouldn't have to open the "file" dropdown menu in Maya. Can this be done? If so, how?

# 2 15-12-2011 , 10:18 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472




Avatar Challenge Winner 2010
# 3 15-12-2011 , 11:13 PM
Registered User
Join Date: Dec 2011
Posts: 4
Hmm...The article is poorly written but if I understand it correctly, it uses MEL and python to create a shelf button, which isn't quite what I need.

We've got a GUI (just a simple window) with a button labeled "export," and we need this button, when pressed, to open up the "export selection" dialogue box. Basically it would be a shortcut to going file > export selection.

# 4 16-12-2011 , 12:18 AM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Sorry for getting it wrong, but why the hell would you need a button for that. dont you trust your people to just export selected.............dave




Avatar Challenge Winner 2010
# 5 16-12-2011 , 12:22 AM
Registered User
Join Date: Dec 2011
Posts: 4
Normally I would agree, trust me :\ It's just what the assignment calls for.

# 6 16-12-2011 , 07:39 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988
Assignment? Is this for a class? If not, I can give you the code. Or better yet, I can tell you how to get the code for yourself; that way you can learn how to automate a huge amount of things!


Imagination is more important than knowledge.
# 7 19-12-2011 , 03:31 AM
Registered User
Join Date: Dec 2011
Posts: 4
It was for a class, yes. The command I wanted turned out to be cmds.ExportSelection.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads