Jump to content
Sign in to follow this  

External Text or Python File Set HDA Parameters

Recommended Posts

Hi everyone,

Does anybody know how I can set an HDA's parameters with an external Text or Python File?

For example how would I change the sizex and sizey parameters of a Grid SOP in the HDA.


Thank you, I appreciate any help!
- Von Doom



Share this post

Link to post
Share on other sites

Short answer: yes.
Long answer: There are 2 ways you could do it. depending on what you want to do.

1) Use an external python script to open Houdini in the background, place a HDA and set parms. (required the loading of the Hou library into your python script)

2) normally use Houdini and use a python node/python shell.

In both cases you would 

  1. Load and read text file
  2. (if running Houdini in background create HDA)
  3. Store Node refrence to placed HDA 
  4. Set parameters based on read data.


Main class to have a look at is hou.Parm




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this