Boris FX Particle Illusion Forum
Command Line question- batch rendering
Command Line question- batch rendering
by Aaron Cross on Apr 15, 2019 at 12:43:43 am


Firstly Alan- thanks for your reply on my last post. Strange issue but can live with it..CMD+R does rewind, except if mouse if over the the library window. OSX 100.11.6 Can't seem to reply to that post now though.

Second question- are there any examples of command line scripts you can share?
I have a folder of 120 PI files ready for batch rendering, but even using the batch renderer there's quite a lot of manual file naming etc. I would be quite keen to process the whole folder with the same settings and just an incrementing filename such as "Untitled_001", would be fine for the name. Is it possible to speed this process up with a command line file?

Thanks a bunch,

Re: Command Line question- batch rendering
by Alan Lorence on Apr 15, 2019 at 12:28:28 pm

Look at the help docs for the section on batch rendering. It shows the list of commands. Also from those docs:

Using the Saved Command Files

Earlier it was mentioned that pIRenderBatch can be used to save command files, which are essentially shell scripts that have been renamed with an ".irb" extension. If you wanted to run these shell scripts without using pIRenderBatch (for whatever reason), you can just rename the file to have a ".sh" extension, then change the permissions of the file to make it executable. Note that extensive testing has not been done on this, since it is not something that we foresee being used very often.

Editing the Saved Command Files

It is possible to edit the saved .irb files in a text editor. Just be sure not to delete the first line of the file. Why would you want to edit these files? Suppose you had several project files that were similarly named, for instance "Test project 01.ip3", "Test project 02.ip3", etc. You could use pIRenderBatch to add the first project, "Save" the file, then open the file in TextEdit (or any text editor). Using Copy and Paste, you could then add several copies of the command line, and edit the project (and output) filenames. After saving the file, "Load" it into pIRenderBatch and start rendering -- using this trick you avoided having to repeatedly use the "Add" button.


Alan Lorence
Product Manager