Houdini 11.1 to Krakatoa SR Python Exporter - Dec. 7, 2011

This archive includes compiled python extensions for Houdini 11.1 on Windows, CentOS 5, and Ubuntu 10.04 for exporting PRT files from Houdini particles. Also included is a sample script for exporting a Houdini scene to the format read by Krakatoa SR. The export script is very rudimentary and does not currently include a UI at all. We intend to have later versions with something more user friendly. Feel free to offer suggestions about how this SHOULD be done as we’re a little new to Houdini. :smiley:

[size=150]Note:[/size] This export script is meant as a demonstration and is not intended for production use.

To install,

  • Copy the contents of the ZIP file to a local directory. In this example, we will use: c:/pathtoexporter/.
  • Copy the appropriate compiled plugin to your Houdini plugin folder (C:/Users/Darcy/Documents/houdini11.1/dso/ is mine).
  • Open Houdini and customize a shelf with the command: execfile( "c:/pathtoexporter/Houdini_To_KrakatoaSR_Exporter.py" )
  • Assign the included icon file to the shelf command to get the Krakatoa logo in the Houdini UI (c:/pathtoexporter/H2KSR32.png).

The Houdini python extension exportParticles.[dll|so] exposes a module Krakatoa with single python method that will export a SOP containing particles to a file. It has signature:

Krakatoa.exportParticles( node, filePath, [channels] )

@param node A hou.node object containing a SOP node with particles
@param filePath The path to write the PRT file to
@param channels [optional] A list of strings that are the channels and their data types for exporting. If not supplied all present channels will be written with 
                           their default type. Ex. ['Position float32[3]', 'Velocity float16[3]', 'Age float16[1]']

You will also need to install the latest build of Krakatoa SR to your system. You can find the latest build here.

At this point, clicking the new tool in the shelf will cause your scene to be exported and automatically sent to Krakatoa SR. Hopefully this example is useful!

PS. We intend to open source the code behind exportPRT.[dll|so] soon.

Houdini2KrakatoaSR.rar (113 KB)