OSL shader using multiple shader outputs
It is possible to create your own shaders using Open Shading Language. OSL shaders can be used to implement anything from simple texture patterns to full materials using closures.
The method to use OSL in Houdini is simply to put down an OSL VOP in an arnold_materialbuilder in the MAT context in Houdini. This vop allows you to pull in source code with a file browser.