Important Files
Four header files are included in the Houdini Engine distribution:
Assuming you used the default install options, you should find these files in:
C:\Program Files\Side Effects Software\Houdini <version>\toolkit\include\HAPI
For native applications, you will need to link against the import library. The import library is named libHAPI.a
and is found in a directory that should look similar to:
C:\Program Files\Side Effects Software\Houdini <version>\custom\houdini\dsolib
Version
When writing applications with Houdini Engine it is important to ensure that the version of Houdini Engine being loaded into memory is in fact the version of Houdini Engine you compiled your code against (a common scenario where this can be a problem: setting the PATH environment variable wrongly to point to some other version of Houdini Engine).
We provide HAPI_GetEnvInt() to help you determine the version of Houdini Engine that you have actually loaded into memory. Possible int types are given by HAPI_EnvIntType.
The important version numbers are:
These are effectively Houdini Engine API version numbers that describe the API and the data structures around the API. These should match the numbers against which you built your application.
You may also get version information at build time by including the HAPI_Version.h header file. This file is generated during the building of Houdini and will always contain the correct values. All version numbers are provided as #define
's for your own use.
Putting Engine in Version Control
Steps:
- Install (once per machine) the license server by installing a full copy of Houdini. Here's the command to do it silently via command line (adjust EULA date accordingly):
start /WAIT houdini-18.0.666-win64-vc14.exe /S /DesktopIcon=No /FileAssociations=No /Registry=No /StartMenu=No /LicenseServer=Yes /AcceptEULA=2020-05-05 /MainApp=No
- Set up the license server URL (also once per machine or when the URL changes):
hserver -S <URL-of-your-license-server>
- Download the latest houdini installer every time you wish to update Engine and unzip only the engine files by running this (adjust EULA date accordingly):
start /WAIT houdini-18.0.666-win64-vc14.exe /S /DesktopIcon=No /FileAssociations=No /HoudiniEngineOnly=Yes /Registry=No /StartMenu=No /LicenseServer=No /AcceptEULA=2020-05-05 /MainApp=No /EngineMaya=Yes /InstallDir="%CD%\houdini-18.0.666-win64-vc14"
Please replace 18.0.666 with your version. Not the /EngineMaya=Yes
- change this to any other plugins you need.
- Check in into perforce or any other VC what you extracted in step 3.
Installing Houdini Engine plug-ins
For more information on installing and using the Houdini Engine plug-ins, please consult the documentations:
Suggested Steps
While the HAPI docs are in dependency order for the most part, it is not perfectly so, nor are all sections of a category relevant for most integrations. Here is a recommended minimal integration strategy, in order:
- Initialization and Testing
- Strings
- Return Codes and Error Strings
- Initialization and Cleanup
- Saving a HIP File
- Instantiation of Assets
- Asset Library Files
- Cooking
- Transforms
- Objects
- Query
- Object Transforms
- Geos
- Parts
- Attributes
- About Houdini Attributes
- Query Attribute Information
- Getting Attribute Values
- Nodes
- Nodes Basics
- Parameters
- Query Parameter Info
- Getting Values
- Setting Values
- Incremental Updates
- Tabs and Folders
- Choice Lists
- MultiParms
- Presets
- Asset Inputs
- Exposing Inputs
- Input Assets
- Marshalling Geometry Into Houdini
- Adding Attributes
- Adding Groups
- Connecting Assets