Hugh Posted August 10, 2013 Share Posted August 10, 2013 Hi, I'm trying to do some automation using hbatch, and I've come across a bit of an issue when trying to override the output files when calling the 'render' command. When I call: render -f 1 10 -a -o /path/to/myNewRenders.$F4.exr mantra1[/CODE]And look in the created .ifd files, each .ifd file is set to render to /path/to/myNewRenders.0001.exr, because, I'm assuming, the variable substitution happens when calling the 'render' command, when the frame context is 1.Alternatively, I've tried:[CODE]render -f 1 10 -a -o /path/to/myNewRenders.\$F4.exr mantra1[/CODE]Which writes "/path/to/myNewRenders.$F4.exr" into the .ifd files, which would sound right to me, but when I pass this .ifd file into mantra to have it rendered, it, once again, evaluates the frame as 1, giving me a resulting file of /path/to/myNewRenders.0001.exrAny idea how I can do this without calling something like:[CODE]render -f 1 1 -a -o /path/to/myNewRenders.0001.exr mantra1render -f 2 2 -a -o /path/to/myNewRenders.0002.exr mantra1render -f 3 3 -a -o /path/to/myNewRenders.0003.exr mantra1render -f 4 4 -a -o /path/to/myNewRenders.0004.exr mantra1render -f 5 5 -a -o /path/to/myNewRenders.0005.exr mantra1render -f 6 6 -a -o /path/to/myNewRenders.0006.exr mantra1render -f 7 7 -a -o /path/to/myNewRenders.0007.exr mantra1render -f 8 8 -a -o /path/to/myNewRenders.0008.exr mantra1render -f 9 9 -a -o /path/to/myNewRenders.0009.exr mantra1render -f 10 10 -a -o /path/to/myNewRenders.0010.exr mantra1[/CODE]Thanks Quote Link to comment Share on other sites More sharing options...
edward Posted August 11, 2013 Share Posted August 11, 2013 Try doing an opparm command to change the output filename instead of the render -o option. eg. opparm mantra1 vm_picture ( '/path/to/myNewRenders.$F4.exr' ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.