Hi,
I am posting this question because the last post I found was from 2009.
Is there a way to render queue different ROPs from different hip files other than installing and running Hqueue on my same machine?
I basically have only one machine that I want to leave overnight rendering different hip files. Do I install Hqueue client and server in order to do this? it seems a bit overkill right?
Nico.
Render queue or batch render.
11532 8 1- Nicolas Heluani
- Member
- 283 posts
- Joined: 12月 2015
- Offline
- XiangYu
- Member
- 26 posts
- Joined: 1月 2016
- Offline
You could use “Houdini Command Line Tool” in your start menus on Windows.
print “hbatch” to initialize Houdini batch script.
For example:
mread /XX/xx.hip
render -V mantra1 mantra2
mread /XX/xx2.hip
render -V mantra2
Save this in a txt file.Drag into the command window to start it.Be sure to use “/” in your path instead of “\”.
print “hbatch” to initialize Houdini batch script.
For example:
mread /XX/xx.hip
render -V mantra1 mantra2
mread /XX/xx2.hip
render -V mantra2
Save this in a txt file.Drag into the command window to start it.Be sure to use “/” in your path instead of “\”.
- Nicolas Heluani
- Member
- 283 posts
- Joined: 12月 2015
- Offline
wocaonima
You could use “Houdini Command Line Tool” in your start menus on Windows.
print “hbatch” to initialize Houdini batch script.
For example:
mread /XX/xx.hip
render -V mantra1 mantra2
mread /XX/xx2.hip
render -V mantra2
Save this in a txt file.Drag into the command window to start it.Be sure to use “/” in your path instead of “\”.
cool! I have been using hrender as in this post..
https://www.sidefx.com/forum/topic/16761/ [www.sidefx.com]
..but the problem I had is that it renders 1 frame from each scene at the time…I think your system will do what I want which is render one scene at a time.
Edited by Nicolas Heluani - 2017年7月12日 05:30:34
- Nicolas Heluani
- Member
- 283 posts
- Joined: 12月 2015
- Offline
For anyone searching for the same answer this is how I ended up solving it:
I created a cmd file renderBatch.cmd, in it I wrote:
For some reason is important to set the frame range before the verbose -V
then I run in the Houdini command line tool:
hscript renderBatch.cmd
done!
Hope this helps.
I created a cmd file renderBatch.cmd, in it I wrote:
mread C:/houdiniProjects/folder/hip1.hip
render -f 43 45 -V /out/Beauty
mread C:/houdiniProjects/folder/hip2.hip
render -f 70 75 -V /out/Beauty
For some reason is important to set the frame range before the verbose -V
then I run in the Houdini command line tool:
hscript renderBatch.cmd
done!
Hope this helps.
- BabaJ
- Member
- 2129 posts
- Joined: 9月 2015
- Offline
Ok..I think I've found the thread that might help me.
I'm basically wanting to do the same as above with the exception that instead of doing different hip files,
I was hoping to perhaps put in some python between each render command line,
the net effect being that each render of the same hip file will be from nodes that have had their render flags toggled on/off ( via the python ‘commands’ )
If this can be done, does anyone know of a reference ‘tut’ or article where something is done similarly - just so that I can see the syntax approach.
Or perhaps the python part would be just the same as in a python shell of a hip file?
Thanks.
P.S. can't get renders off of my scene - not enough memory on my rig, but I can do seperate renders and comp the final. Hoping to do a setup where I can leave it rendering the different images overnight.
Edit: Ok..I found a veramix tut…although he's working in a linux environment, seems to be enough info there that I can figure it out for windows
I'm basically wanting to do the same as above with the exception that instead of doing different hip files,
I was hoping to perhaps put in some python between each render command line,
the net effect being that each render of the same hip file will be from nodes that have had their render flags toggled on/off ( via the python ‘commands’ )
If this can be done, does anyone know of a reference ‘tut’ or article where something is done similarly - just so that I can see the syntax approach.
Or perhaps the python part would be just the same as in a python shell of a hip file?
Thanks.
P.S. can't get renders off of my scene - not enough memory on my rig, but I can do seperate renders and comp the final. Hoping to do a setup where I can leave it rendering the different images overnight.
Edit: Ok..I found a veramix tut…although he's working in a linux environment, seems to be enough info there that I can figure it out for windows
Edited by BabaJ - 2018年5月18日 17:05:44
- Nicolas Heluani
- Member
- 283 posts
- Joined: 12月 2015
- Offline
Rather than creating flags on rop nodes and having your python plugin check for those flags a better solution could be to create a plugin that write the command file listed above and later an external file that execute houdini command and hbatch that command file. I hope I am making any sense. That way you can just ‘send’ wathever rop you need and execute it later. On a personal note I will say that a plugin like that will be very popular as it is a common workflow for indies to do this.
- BabaJ
- Member
- 2129 posts
- Joined: 9月 2015
- Offline
Not sure what you mean - unless your referring to your spedific case.
As for my needs I don't need to “..creating flags on rop nodes and having python plugin check for the those flags..” ??
No python plugin is needed or render flags on rop nodes.
Single mantra node, and in a text file the commands to turn on and off the render flags of the objects in the scene that will be rendered for each render. ( My project is a single image with multiple seperate images of the same scene that will be comped together afterwards )
Plug-in is not necessary - I would have to list those objects in a plug-in anyways.
As for my needs I don't need to “..creating flags on rop nodes and having python plugin check for the those flags..” ??
No python plugin is needed or render flags on rop nodes.
Single mantra node, and in a text file the commands to turn on and off the render flags of the objects in the scene that will be rendered for each render. ( My project is a single image with multiple seperate images of the same scene that will be comped together afterwards )
Plug-in is not necessary - I would have to list those objects in a plug-in anyways.
- Nicolas Heluani
- Member
- 283 posts
- Joined: 12月 2015
- Offline
Ah ok. I completely misunderstood you before. But I am still not sure what you want to accomplish in the context of my original post…which is about batch rendering different hip files. If this digress too much from that subject I will recommend you start a new post. Because if I understand correctly what you are trying to do is basically render the same mantra rop multiple times with different obj filters?
- kiryha
- Member
- 8 posts
- Joined: 7月 2008
- Offline
How can I run in the Houdini Command Line Tool `hscript renderBatch.cmd` with Python?
Only launches Houdini Command Line Tool, but do not execute `hscript render.cmd`
subprocess.call(["C:/Program Files/Side Effects Software/Houdini 17.0.459/bin/hcmd.exe", "hscript render.cmd"], shell=True)
Only launches Houdini Command Line Tool, but do not execute `hscript render.cmd`
Edited by kiryha - 2019年4月22日 16:12:04
-
- Quick Links