View Single Post
Old 30th June 2007, 04:00 AM   #1
heraclitus
Junior Member
Junior member
 
Join Date: Feb 2005
Location: Reunion Island
Posts: 2
Default AppleScript, command line and rendering

Hi,

I am using AC3D 6.2 on Mac OS X 10.4.10 PPC.

I am playing a bit with AC3D. Here is what I am trying to do.
I want AC3D to give me a render preview of my scene using a Renderman renderer (3Delight for instance). I used Tools -> Render. There I chose Renderman as "output file type", renderdl (3Delight rib binary) as "render program", some options in "render parameters". Nothing happened.
I supposed that AC3D didn't know how to send renderdl to a Terminal window (as renderdl is a Unix executable to be used in a Terminal).
I then wrote a really, really basic AppleScript, saved as an application, containing one line:
do shell script "/Applications/Graphics/3Delight-6.5.0/bin/renderdl -p 0 -d /Users/jeanmichel/Desktop/ac3d_renderman.rib"
By specifying the new app in "render program" I got my render preview.
But I really don't know anything about AppleScript. And I would need someone to improve my poor scripting. Here everything is hardcoded in the script: render program, parameters, input file name. I would like AC3D to pass all of them as variables to my AppleScript app to make it more flexible and actually usable. I tinkered a bit with Automator too, but too no avail.

Anyone can help?

Jean-Michel
heraclitus is offline   Reply With Quote