I am looking to create a droplet for Maya (2009 or later) that I can drop a Maya project file on and have it run a Terminal command:
/Applications/Autodesk/maya2009/Maya.app/Contents/bin/Render -r sw 'projectFILE PATH/NAME HERE'
There are different renderers available in Maya, and from third parties, Software, Mental Ray, and Renderman, is what I am using for the most part, so I will stick to that for now.
So I would love to be able to drop a file onto the app, have it open a dialogue box asking which renderer I would like to use, and possibly some other options, that could change the command that will be run in terminal, but always use the path and filename of the file dragged to it.
I am basically trying to replicate actually opening the Terminal application, typing in the proper render commands, then running it, leaving terminal open so I can see the progress of the render.
I am not quite sure to start with this and would just like to get some guidance to get started.
EDIT:
here is the starting point i suppose:
activate application "Terminal"
tell application "System Events"
set frontmost of process "Terminal" to true
keystroke "/Applications/Autodesk/maya2009/Maya.app/Contents/bin/Render -r rman -h"
keystroke return
end tell
this will not really do anything on a machine that doesn’t have Maya 2009 installed, but this is the basic funtionality I need from the droplet, again I want Terminal to actually launch so I will be able to check progress, the main thing I need to get into the Terminal command is the whole file path of the file that is dragged onto the droplet.
Thanks!