A object-oriented python wrapper for houdini engine's C API
Project description
pyhapi
Object-Oriented Python Wrapper for Houdini Engine's C API
Install
1. setup PATH
- For Windows
AddC:\Program Files\Side Effects Software\Houdini <version>\custom\houdini\dsolibto Environment Path - For Linux
Add/opt/hfs<version>/dsolib/to LD_LIBRARY_PATH
Example:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/hfs17.5/dsolib/
2. install through PyPI
$ pip install pyhapi
Supported Platforms
- Windows
- Linux
Dependency
- Python: >3.6
- Numpy: >= 1.15
- Houdini: 17.5
- License supported:
- Houdini FX
- Houdini Core
- Houdini Engine
- License NOT supported:
- Houdini Engine Indie
- Houdini Indie
- Houdini Apprentice
- License supported:
Features
- Instantiate node/HDA
- Node connect operation
- Node parameter get/set
- Node async cooking
- Marshall in/out curve
- Marshall in/out mesh
Following feature in Houdini Engine is NOT supported yet:
- Marshall in/out volume
- PDG execution
Example Usage
Create a session
import pyhapi as ph
session = ph.HSessionManager.get_or_create_default_session()
See more in
Example: node_networks_operations
Instantiate a HDA
hda_asset = ph.HAsset(session, "hda/FourShapes.hda")
asset_node = hda_asset.instantiate(node_name="TestObject").cook()
Set parameter of node
asset_node.set_param_value("seed", 1.0)
asset_node.set_param_value("foo_attrib", "foo_str")
asset_node.press_button("foo_execute")
See more in
Example: hda_params_getset
Save HIP file
session.save_hip("debug.hip")
Marshall data
see more in
Example: curve_marshall_input
Example: curve_marshall_output
Example: mesh_marshall_input
Example: mesh_marshall_output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhapi-0.0.1b0.tar.gz.
File metadata
- Download URL: pyhapi-0.0.1b0.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a76ed20c3112ed77b85cdbb0ba1f5913381cd23c7e1e04dbd1623bce7dbe27e5
|
|
| MD5 |
0555ede794a24ee600f353197b149afb
|
|
| BLAKE2b-256 |
39e729d6be628538dffc821614683406c4385f419a07efddf8bbbecf20b6aa55
|
File details
Details for the file pyhapi-0.0.1b0-py3-none-any.whl.
File metadata
- Download URL: pyhapi-0.0.1b0-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fd88d9c48ae5190db670a1e99cf9f9e23bceb9f3065d93532ae5bbb3a132f86
|
|
| MD5 |
f91e54c54f0653f5646b9153b26b7682
|
|
| BLAKE2b-256 |
17b93a22c535f90cc47f34bd2435014c8e537c87e64588e33356c528d6225280
|