Awesome. This worked really well for initiating the program if its not already open. One issue is that I'm using unity as the targeted application and if Unity is already open and you try to open another instance it throws an error dialog. Is there a way to check if the Unity process is already running, and if so, bring it…
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.
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…
don't know if this works out of the box, just typed it down using some of my codes as a reference, maybe i missed something. I can't test it now, i'm on a mac :D you can of course extend that to open the program like you already did, if the window is not found etc. i'm using global variables to get the string to the…