1. First, create a bat file, where I will name it external render.bat and right-click to edit.

 

 

 

In the first line, I set the temporary Houdini environment variable, which can be modified according to your own Houdini path. Of course, if you have already set the environment variable in the computer system, you don't need to add this sentence. (This variable will be automatically canceled after batch processing is completed and closed)

The second line is to open h (i.e. hbatch. exe in the houdini bin directory)

Save and close.

2. Then we will create a txt document in the same directory as render.bat, which will be used to store the rendering file directory. I will name it renderList.txt and open it to write the project file and rendering node to be rendered. The format is as follows.


 

 

 

The first line writes the file path, and the second line writes the node path you want to render.

Note: The word used here is "/" instead of "". If written incorrectly, it will not be rendered.

3. Let's run render. bat first, and this will appear.


 

 

Then we drag the renderList. txt file directly into it. At this point, let's not press enter to execute. First, modify the "" in the path to "/".

Then press enter to start batch background rendering.

The following words:

If you add the path of the file you want to render to the rendeR.bat file


 

 

 

The files in the renderList. txt file do not need to be path added, so it should be written like this (which is more suitable for rendering files in the same directory).

 

 

 

This method can not only be used for rendering, but also for outputting behavior.

3. Method of shutting down after rendering is completed

The Python command is used:

importos;os.system("shutdown -s -f");

Input the above paragraph into the mantra>->post render of your last rendered file (h to Python)


 

 

If there are multiple output nodes in the same scene that need to be output, they can be written as follows