Houdini 20.5 Maya

Install

How to install the Houdini Engine for Maya plugin

On this page

Houdini Engine for Maya is bundled together with the Houdini installer. Once the Houdini installer is started, simply select the Houdini Engine for Maya component, and the installer will handle the rest. The plug-in will be available inside Maya, when the installation finished.

The installer performs the following steps:

  1. Extracts the Maya plug-in for all supported Maya versions. This includes the plug-in binary, and various scripts. Files for all the supported Maya versions are extracted, regardless of which Maya versions are actually installed on the system. The extracted files can be found under the $HFS/engine/maya directory.

  2. Registers the newly installed Maya plug-in with Maya. This step is only done for Maya versions that the installer is able to detect.

Normally, the installer would perform the necessary steps to register the plug-in with with Maya, if Maya is installed locally in the default location. However, if another Maya version is later installed, or in a custom software deployment scenario, the plug-in may not be registered with Maya automatically. In these cases, extra steps may be needed to register the plug-in with Maya.

The plug-in uses the Maya module description file to register with Maya. This also sets up the correct environment variables that are needed to run the plug-in. A common installation problem is that users would attempt to manually set the MAYA_PLUG_IN_PATH and MAYA_SCRIPT_PATH environment variables. However, this may not lead to a correct environment to run the plug-in. The module description file also contains additional information used to resolve library conflicts; without access to this information crashes may result. Using Maya’s module description file is the recommended way to register the plug-in.

Copy the module description file to an existing module directory

The module description file contains an absolute path to the plug-in files:

$HFS/engine/maya/maya<version>/houdiniEngine-maya<version>

and is designed to be copied to one of the directories that Maya searches, such as:

$MAYA_LOCATION/modules 

To register the plug-in, for example on Windows, copy the file:

  • C:\Program Files\Side Effects Software\Houdini 17.0.544\engine\maya\maya2018\houdiniEngine-maya2018 into C:\Program Files\Autodesk\Maya2018\modules

Or for example on Linux, copy the file:

  • /opt/hfs17.5.342/engine/maya/maya2018/houdiniEngine-maya2018 into /usr/autodesk/maya2018/modules

This is exactly what the installer would do to register the plug-in with Maya.

Setting the MAYA_MODULE_PATH environment variable

Setting the MAYA_MODULE_PATH environment variable is a more flexible way to register the plug-in. The module description file contains a relative path:

$HFS/engine/maya/houdiniEngine-maya<version>

and is designed to be used with the MAYA_MODULE_PATH environment variable. For example, insert the following path into MAYA_MODULE_PATH

C:\Program Files\Side Effects Software\Houdini 17.0.544\engine\maya

Or on Linux, you can add something like

/opt/hfs17.5.342/engine/maya

Note that the path does not contain the maya<version directory. The module description files are created such that Maya is able to select correct module depending on the running Maya version.

Setting the location of HFS and libHAPIL

Newer versions of the plug-in utilize a new method for initialization that require the path to HFS and libHAPIL to be specified. In most cases these will be automatically populated during the first launch of the plug-in, however if Houdini has been installed into a custom location, you will need to specify these paths manually. This can be done in two ways:

The paths can be specified in the plug-in preferences window.

The default locations for HFS are:

OS

Path

Windows

C:\\Program Files\\Side Effects Software\\Houdini x.x.x

Linux

/opt/hfsx.x.x

macOS

/Applications/Houdini/Houdinix.x.x/Frameworks/Houdini.framework/Resources

The default locations for libHAPIL are:

OS

Path

Windows

C:\\Program Files\\Side Effects Software\\Houdini x.x.x\\bin\\libHAPIL.dll

Linux

/opt/hfsx.x.x/dsolib/libHAPIL.so

macOS

/Applications/Houdini/Houdinix.x.x/Frameworks/Houdini.framework/Libraries/libHAPIL.dylib

The paths can be set programmatically. This is useful when you need to deploy the plug-in to a large number of users. To set these values, insert the statements in your language of choice into a script file that is run when your environment is loaded. For example, userSetup.[mel|py]

To set the location of HFS:

Language

Command

MEL

optionVar -stringValue "houdiniEngineHfsLocation" "path/to/hfs/directory";

Python

cmds.optionVar(sv=('houdiniEngineHfsLocation', 'path/to/hfs/directory'))

To set the location of libHAPIL:

Language

Command

MEL

optionVar -stringValue "houdiniEngineHapilLocation" "path/to/libHAPIL";

Python

cmds.optionVar(sv=('houdiniEngineHapilLocation', 'path/to/libHAPIL'))

Maya

Getting started

Input and Output Geometries

Using Houdini Engine for Maya

Reference