Skip to main content

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

Project description

pyhapi

Downloads

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

Documentation

Please visit pyhapi documentation.

Install

1. setup PATH

  • For Windows
    PIP should automaticaly setup path, otherwise run powershell setpath.ps1
  • 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.2b1.tar.gz (27.9 kB view details)

Uploaded Source

Built Distributions

pyhapi-0.0.2b1-py3.7.egg (71.2 kB view details)

Uploaded Egg

pyhapi-0.0.2b1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhapi-0.0.2b1.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyhapi-0.0.2b1.tar.gz
Algorithm Hash digest
SHA256 40b87348ab4314f9ef7c1f08e8444be6596b3fd04a687865581a65c189684a97
MD5 d435757348c570cb795c2f1e70b16e34
BLAKE2b-256 632a917159fe56a63b9e5d25fbbbbedee9b164a3dbea844e7c7ae2fd64704ef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhapi-0.0.2b1-py3.7.egg
  • Upload date:
  • Size: 71.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyhapi-0.0.2b1-py3.7.egg
Algorithm Hash digest
SHA256 9b2ba08a498b39389fa31f3da3955b500e8b9c6b81c3056ca8758e85d3c26024
MD5 d2e0778051fce2e7010970f15ef6fbc4
BLAKE2b-256 1fbb873c31b0ebebf628632d943c5bcee4e0ef05f473d0f893729520511b9561

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhapi-0.0.2b1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyhapi-0.0.2b1-py3-none-any.whl
Algorithm Hash digest
SHA256 af18c618db4a70a4ce5347721ec4e93fc9a4bedf5a13dc85fa89ae8fd1d1f8cb
MD5 ada177817cd4110a236dfb0f24632af6
BLAKE2b-256 b8bcc1144c5ce8006e9b15a81af1bee80a0e8f86c72fac550305ba44f00aa1d8

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