How can I make a batch render file??

   20128   7   1
User Avatar
Member
6 posts
Joined: April 2009
Offline
I use command tools to do the batch render, but it can only

render one scene for each time.

How could I make a .bat or .cmd file so that I can

write several render commands for multiple render?

Thanks for any help
User Avatar
Member
1631 posts
Joined: July 2005
Offline
You should be able to put multiple batch render commands into a .bat file and run the .bat file.

Cheers!
steven
User Avatar
Member
6 posts
Joined: April 2009
Offline
steven:

Thanks for the rely.

I tried but somehow it only calls out the command tool and doesnt start

the rendering…

here is what I wrote in the .bat file


> “C:\Program Files\Side Effects Software\Houdini 9.5.169\bin\hcmd.exe”
> mread D1-BD-AJA-080509/1-wk/3-set/3-houd/night_news/night-news-02-6.hip
> render beauty -V -f 1 92
User Avatar
Member
1631 posts
Joined: July 2005
Offline
You can use hrender in the Command Line Tools (Start > Programs > Side Effects Software > Houdini any.version > Command Line Tools) which is a command prompt with the Houdini environment set up correctly.

From your post, you should be able to do the following:
hrender -e -v -f 1 92 -d beauty D1-BD-AJA-080509/1-wk/3-set/3-houd/night_news/night-news-02-6.hip
If the above works for you, you should be able to put many hrender commands into a .bat file & run it.

Do hrender -h in the Command Line Tools to get more information.

Cheers!
steven
User Avatar
Member
6 posts
Joined: April 2009
Offline
steven

I tried the code in Houdini command tool,

but it shows that hrender is an unknow command…

and I cant find any command called hrender in the help…
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Naohito
steven
I tried the code in Houdini command tool,
but it shows that hrender is an unknow command…
and I cant find any command called hrender in the help…

hrender is a csh script present in $HFS/bin directory. I've never used it on Windows but you can get pretty much the same thing without it.

As Steven said, the best is to run Houdini command line tool. Then put the serious of commands in *.bat file.

hscript my_hip_file.hip
render -V /out/beaty_pass
mread another_hip_file.hip
render -V /out/another_beauty_pass
quit # clean out for any reason
hscript my_very_best.hip
render….

and so on…

The same thing can be done in hython (python) like here. [sidefx.com]
User Avatar
Member
6 posts
Joined: April 2009
Offline
Thanks everyone! I really appreciate you guys` help!

But I still cant make it out, keep working hard to find a better way

to do batch render!
User Avatar
Member
1631 posts
Joined: July 2005
Offline
Hi Naohito,

For a batch render script using hrender, please check out this thread [sidefx.com].

When I replied, it didn't occur to me about hrender being a csh script and that's why it didn't work for you.

Cheers!
steven
  • Quick Links