Jump to content

hbatch : Overriding output using 'render' command


Hugh

Recommended Posts

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.exr

Any idea how I can do this without calling something like:

[CODE]
render -f 1 1 -a -o /path/to/myNewRenders.0001.exr mantra1
render -f 2 2 -a -o /path/to/myNewRenders.0002.exr mantra1
render -f 3 3 -a -o /path/to/myNewRenders.0003.exr mantra1
render -f 4 4 -a -o /path/to/myNewRenders.0004.exr mantra1
render -f 5 5 -a -o /path/to/myNewRenders.0005.exr mantra1
render -f 6 6 -a -o /path/to/myNewRenders.0006.exr mantra1
render -f 7 7 -a -o /path/to/myNewRenders.0007.exr mantra1
render -f 8 8 -a -o /path/to/myNewRenders.0008.exr mantra1
render -f 9 9 -a -o /path/to/myNewRenders.0009.exr mantra1
render -f 10 10 -a -o /path/to/myNewRenders.0010.exr mantra1
[/CODE]

Thanks

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...