Currently working with Pymel inside of Maya. I'm struggling to find a way to "alt-tab"/switch onto another open application after running a script. Say if i clicked an "export to desktop" button, the script would then tab me onto my desktop. Any input would be really useful, as Im very much flying blind at the moment.
Quick note that I forgot to mention. The script will stop will stop and wait for the program to close. So, in the case of Photoshop, you would have to quit out of Photoshop in order to resume with the Python script in Maya (and possibly interacting in Maya too). Subprocess will also give you the exit code of the program (0…
Looks like the module that you're looking for is something called subprocess. http://docs.python.org/2.7/library/subprocess.html Quick example: Let's say that you want to open up a texture in photoshop. Quick note: Subprocess requires you to have the arguments in a tuple or list. So, something like "spam eggs" would cause…