Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.28 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.28 KB

homport

Homport makes it easier to interact with Houdini nodes in Python. Run it during interactive sessions to quickly wire up nodes, see the values of parameters, and more.

Usage

Connect nodes quickly:

# connects output of 'node' to first input of 'node2'
node >> node2
# connects output of 'node' to the second input of 'node2'
node >> node2.input_two

Deal with parameters more easily:

# set parameters using assignment
node.tx = 500
# get values without calling eval()
print node.tx

Link parameters together:

# connect `ty` of nodeA to `tz` of nodeB
nodeA.ty >> nodeB.tz

Documentation

Documentation is done using pycco -- check it out here

Installation

You can use pip to install:

pip install -e git+git://github.com/schworer/[email protected]#egg=homport

If you don't want to use pip, clone the repo and add it to your path manually:

git clone git://github.com/schworer/homport homport/

Then, put this in your 123.py or 456.py Houdini startup script:

import homport
homport.start()

or, import it directly in the Python pane within Houdini.

Run the unit tests:

hython test_homport.py