PDA

View Full Version : Shake Command Line


moliver
04-23-2008, 08:15 PM
I know shake has a very indepth command line renderer that will allow you to
parse a variety of things including file-in, file-out, resize, adding text,
etc....

I'm looking for a way to execute a shake script that has already been
created, but be able to change certain variables (ie. file-in nodes).
Anyone know if this is possible without having to send the shake script to a
parser first? There will only be one file in and one file out.

For example..could you send a command like: shake -exec foo.shk -fi
targas.tga -fo targasQT.mov (I know this command does not work..looking for
something similar that does! :) )

rendermaniac
04-23-2008, 11:54 PM
FileIn Nodes (maybe FileOut nodes too) can take environment variables which Shake substitutes. So you could do:


/bin/tcsh

setenv SHOW show
setenv SEQ sequence
setenv SHOT shot

shake -exec foo.shk -vv


It would probably be better to use Perl/Python, rather than shell scripting.

It would be nice if these could be added to/ redifined in an interactive session, but I don't know a way to do this.

Simon

moliver
04-24-2008, 09:41 PM
Just the answer I was looking for. Works great. Thanks!!!

moliver
04-24-2008, 09:42 PM
oh yeah...forgot to mention that yes environment variables do work for fileout's as well.

CGTalk Moderation
04-24-2008, 09:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.