Running the automation from Photoshop

So, there is probably a better way of doing it, but I have been able to run the script from within photoshop using a javascript that calls a .bat file that then calls my python script. It's a convoluted way of doing it, but it does allow me to directly call textureMonkey using an action from within photoshop.

The javascript looks like:
var textureMonkey = new File("/z/Tools/textureMonkey/textureMonkey.bat");
textureMonkey.execute();
and the .bat file called looks like...
@echo off
call python Z:\Tools\textureMonkey\textureMonkey.pyw
The whole thing has been very easy to set up for the art team and is already saving time that would have otherwise been spent navigating folders and changing file names. -Pete

No comments:

Post a Comment

Comments?