Skip to main content

A object-oriented python wrapper for houdini engine's C API

Project description

pyhapi

Object-Oriented Python Wrapper for Houdini Engine's C API

Documentation

Please visit pyhapi documentation.

Install

1. setup PATH

  • For Windows
    Add C:\Program Files\Side Effects Software\Houdini <version>\custom\houdini\dsolib to 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

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

Please see documentation for detailed tutorial. ****

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
Example: heightfield_marshal_input
Example: heightfield_marshal_output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhapi-0.0.2b0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distributions

pyhapi-0.0.2b0-py3.7.egg (70.2 kB view details)

Uploaded Egg

pyhapi-0.0.2b0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file pyhapi-0.0.2b0.tar.gz.

File metadata

  • Download URL: pyhapi-0.0.2b0.tar.gz
  • Upload date:
  • Size: 26.9 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

Hashes for pyhapi-0.0.2b0.tar.gz
Algorithm Hash digest
SHA256 c54a5d2fbb5c460ea27585d3b28c30d1a9a7894e1af44c65bf61a4a8cdfd93d3
MD5 5a35eb04f996d777cef3809580479fc6
BLAKE2b-256 2c786f66ac323990fcef811aee7b7e604d83a700f94e3b8e65527a207a674fdc

See more details on using hashes here.

File details

Details for the file pyhapi-0.0.2b0-py3.7.egg.

File metadata

  • Download URL: pyhapi-0.0.2b0-py3.7.egg
  • Upload date:
  • Size: 70.2 kB
  • Tags: Egg
  • 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

Hashes for pyhapi-0.0.2b0-py3.7.egg
Algorithm Hash digest
SHA256 3622466cd44c416dda6df51ef750dd96345ceb00c78f217ed57f589860b68b21
MD5 0d5001b03ff23b110a558f8e38fc1d6d
BLAKE2b-256 a916320aa0eebfc6b3703d0c7bf33dc8a880e38e0c82f8603e5cbf9c55d6c9d8

See more details on using hashes here.

File details

Details for the file pyhapi-0.0.2b0-py3-none-any.whl.

File metadata

  • Download URL: pyhapi-0.0.2b0-py3-none-any.whl
  • Upload date:
  • Size: 31.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

Hashes for pyhapi-0.0.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fba167e915941fa78fa8b7718181b115751b1c59ef07353063bf82cedde3ff2
MD5 0d86c2d0d9c792592649aea309e84de5
BLAKE2b-256 d61d061ce9d0ab1165baed968aadbde09b5e9bc0d934fc5d637e2ab5902c8bbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page