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

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.1b1.tar.gz (24.3 kB view details)

Uploaded Source

Built Distributions

pyhapi-0.0.1b1-py3.7.egg (70.2 kB view details)

Uploaded Egg

pyhapi-0.0.1b1-py3.6.egg (63.6 kB view details)

Uploaded Egg

pyhapi-0.0.1b1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file pyhapi-0.0.1b1.tar.gz.

File metadata

  • Download URL: pyhapi-0.0.1b1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyhapi-0.0.1b1.tar.gz
Algorithm Hash digest
SHA256 6acfd9e01f309f65ae13003e8094550bbc9f02922aaf511e191718026abcf83f
MD5 2e3926c4fc5d8e2cfc98ed845f5b447f
BLAKE2b-256 16fd35869caa730867c5c140de797feef4e7a7cb123cb4380f93de4b52d9271e

See more details on using hashes here.

File details

Details for the file pyhapi-0.0.1b1-py3.7.egg.

File metadata

  • Download URL: pyhapi-0.0.1b1-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.1b1-py3.7.egg
Algorithm Hash digest
SHA256 667221664d192c54854a955d8654beb79bc45351d695a67a27fb26d83a1e59fb
MD5 b227d3f2a623c1420978307cefc2083d
BLAKE2b-256 8d5da77a5398341cb1aa035df4104e6adae58cd75a73b28ecf37617a2d2b57fd

See more details on using hashes here.

File details

Details for the file pyhapi-0.0.1b1-py3.6.egg.

File metadata

  • Download URL: pyhapi-0.0.1b1-py3.6.egg
  • Upload date:
  • Size: 63.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyhapi-0.0.1b1-py3.6.egg
Algorithm Hash digest
SHA256 9c6759e81754c6b01f040ec32bc8a92c67340683b41bd3ff7eb72217a6cf9bd8
MD5 9c188c91934a7b3922f586dc43e8bd6f
BLAKE2b-256 9dc0a1822e0ea6347cf919d0735461684a144f1d53c6a2dbce0285a8d041cb3d

See more details on using hashes here.

File details

Details for the file pyhapi-0.0.1b1-py3-none-any.whl.

File metadata

  • Download URL: pyhapi-0.0.1b1-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for pyhapi-0.0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 70afcfdf7089d05ee7a2b5c9a35b04af9e021007e8d7cce7085dc6b553f88d9d
MD5 ee7888ec21feba9b3be42c282f8e6e9a
BLAKE2b-256 dd12095ab18a9922dbdb3ac83be6ca5f59e89bdb028d37b2b8eb1ccd22016617

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