Search - User list
Full Version: Using the plugin programmetically (plugin API)
Root » Houdini Engine for Unity » Using the plugin programmetically (plugin API)
seelan
I've added documentation on how the plugin can be used programmetically here: https://www.sidefx.com/docs/unity/_plugin_a_p_i.html [www.sidefx.com]

Also added in Houdini build 16.5.612 is a new example (Plugins/HoudiniEngineUnity/Scripts/Examples/HEU_ScriptMeshInputUVLayoutExample.cs) that shows how to create an input node, upload mesh data from selected gameobjects, connect to a new UV Layout node, and generate the output mesh into a new gameobject, or replace the original's mesh and materials. You can build on this example to process meshes in the entire scene which has been requested a few times.
TwinSnakes007
Any chance for some documentation on loading HE in visual studio?
seelan
For C++ or C#?

There is some info here http://www.sidefx.com/docs/hengine/_h_a_p_i__integration.html [www.sidefx.com]
TwinSnakes007
C#
seelan
Attached is a sample program to use Houdini Engine API (HAPI) via C# and Visual Studio. Lots of comments in it, especially the header part which describes how to set up in VS.

In summary, you don't need to do any special setup in VS except set platform target to x64. The HAPI libraries are loaded at runtime via DLLImports, which should work as long as the PATH environment is setup, which the sample shows how.
TwinSnakes007
Thanks so much for this…I've been waiting for a long time to get something going in C# with HE - just needed a little direction.

Will give you a shout-out when I stand something up with it.

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB