importing, connecting and rendering with cmd need help

   961   2   1
User Avatar
Member
2 posts
Joined: July 2019
Offline
Hello I have a question I need some help with I am pretty new into Houdini so haven’t gotten to any coding in it yet and this is my first crack at it. I have been asked at to make a fx tool that will load up Houdini import a specified geo model import a certain fx asset and connect it to the proper path and then send it to the farm to render. It will also have to have the right environment path so it can be tagged and dropped off in the right place on the server It would be best if it all can be done from the cmd but not absolute. I was wondering if anyone has a good tutorial or article for me to figure this out. We are needing this to save time on a repeated asset that wont need major changes for each use. Thank you for any help
User Avatar
Member
36 posts
Joined: May 2013
Offline
here's a few tips.
- from the cmd line and assuming you're running from Houdini command line:

run hython

# load a specific hip file, not mandatory, you could either save
# to a specific path after add your nodes and setup your scene.

hou.hipFile.load('/path/to/any_hipfile_path.hip')

# create a geo node at object level
geo = hou.node('/obj').createNode('geo')

# alembic sop created inside geo
abc = geo.createNode('alembic')

# setting alembic_sop to a specific path
abc.parm('fileName').set('/path/to/alembic.abc')

hou.hipFile.save()

# and back to console
exit()

----
From the command line, hython can interpret multiple arguments to load data dynamically.
and of course you could create an HDA, submit a render to the farm, execute simulation, so on.

I hope that helps to clarify things.
User Avatar
Member
2 posts
Joined: July 2019
Offline
Awesome thank you this is great!
  • Quick Links