Hi I wanna render my files out of the Houdini with cmd, Of course I can render it with hbatch.exe correctly. But my problem is relative paths for File SOP , or others. I take error for each File SOP that using $HIP for it's path .
for example I used this path in the file1 : $HIPtest.bgeo
But I take this error : Error saving geometry for: /obj/sphere_object1/file1 Command Exit Code: 1
How can I define $HIP (global variable) in the hbatch command ?
I do not use Houdini on windows. but you can do: open Command Line Tool then hscript “C:\Users\Jack\Desktop\testHbatch\testHBatch.hip” then render -V \path\to\your\rop
nobody Really don't know how can I do that in Windows ???
I have to change all $HIP variables to full path on my projects manually and it's a little annoying , specially if I wanna use my projects on another PC with different path
Hi I always do that on windows, no problems if it can be rendered in houdini. Maybe you load your hip while you open hcommand,then the $hip path is the hcmd.exe path. I use mread command
luoqiulin Hi I always do that on windows, no problems if it can be rendered in houdini. Maybe you load your hip while you open hcommand,then the $hip path is the hcmd.exe path. I use mread command
You should just write an expression in your project for set $HIP to your specify address , So when your file open in HBatch.exe then this variable will set currectly :wink:
sl0throp In my experience $HIP fails in hbatch when:
1. $HIP refers to a mapped network drive, I usually substitute the full path. (See next suggestion).
2. $HIP is defined incorrectly - Open up the Alias and Variables check and see how $HIP is defined. I usually replace a mapped drive path with
//myserver/my_houdini_project
Also the use of $JOB is very helpfull.
Thanks for your reply , But unfortunately I didn't use mapped network , all of the files are local , Also $HIP defined correctly in the Alias and Global variables window !
Joker386 You should just write an expression in your project for set $HIP to your specify address , So when your file open in HBatch.exe then this variable will set currectly :wink:
Wooow , Specially thanks Sadjad , your suggestion working perfectly :shock:
It's an old thread but I had the same problem on windows, $HIP refers to my drive letter in hscript. I just fix it in in changing my path with “/” instead of “\”. For example : c:\PROJECT\A\A.hip in cPROJECT/A/A.hip
teresuac $HIP refers to my drive letter in hscript. I just fix it in in changing my path with “/” instead of “\”. For example : c:\PROJECT\A\A.hip in cPROJECT/A/A.hip
Oh my gosh, thank you so much! After hours of confusion and trying, this fixed my batch render problem. All I needed to do was call my file path with forward slashes, and all my file textures loaded! To be clear for others in the future, all I had to do was change my python command from: