How to set relative path to hou.hipfile.load

   2533   1   0
User Avatar
Member
13 posts
Joined: 10月 2014
Online
Hi i want rund pdg from command line and i have two file, run.bat and automate.py
I need realtive path for hip file, i try it “$HIP/automate_process_easy_f3.hiplc” but this dont work
Please help me, thank you

run.bat
———–
SET hbatchDir=“C:\Program Files\Side Effects Software\Houdini 18.0.388\bin\”
SET “JOB=%ROOT%/Tools/pdg”
SET “HIP=%ROOT%/Tools/pdg”


%hbatchDir%hython.exe “%~dp0\scripts\automate.py”

automate.py
————
import hou

hou.hipFile.load(“C:Tools/pdg/automate_process_easy_f3.hiplc”)

import hqueue.houdini as hq
node = hq.getNode(“/obj/topnet1”)
disp_node = node.displayNode()
# blocking full cook of PDG
disp_node.executeGraph(False, True, False)
User Avatar
Member
13 posts
Joined: 10月 2014
Online
solved
  • Quick Links