To build a user interface for an asset, you can take controls from nodes inside the asset and put them on the asset.
As you edit type properties, keep a parameter editor open showing an instance of the digital asset. Then you can click Apply in the type properties window and see the changes appear in the parameter editor.
Creating and promoting parameters
|Promote a parameter|
|Promote all parameters of a node|
Drag the node into the parameter list of the type properties window.
If you drag a nested digital asset into the list, Houdini will promote the parameters from the nested asset with their organization intact.
|Promote hidden or un-draggable parameters|
|Create a new parameter from scratch|
|Organize parameters into tabs|
|Make a parameter auto-scope in the channel list|
|Make a menu parameter|
|Put consecutive parameters side-by-side to save space|
|Run a script whenever a parameter changes|
Use the Callback script option to enter a script that Houdini runs whenever the parameter changes. See the help for the Parameters tab for more information.
You can also create a menu whose contents are created by a script. See the help for the Menu subtab for more information.
|Remove a parameter|
Click the red X to the right of a parameter name in the parameter list to remove it.
For parameters with multiple components (such as an X,Y,Z position parameter or an R,G,B color parameter), you can promote all components by dragging the parameter label, or a single component by dragging the component’s text box.
Promoting manipulators up to the asset
To give a digital asset an interactive interface, you can set up manipulators (such as manipulators handles) or HUD sliders. You can quickly set up a custom manipulator by promoting an existing manipulator on a node inside the asset as a starting point.
To begin promoting controls, open the type properties window for the asset, then use the procedures below.
|Promote transform manipulators|
|Promote HUD sliders|
|Promote all persistent handles|
HUD slider setup properties
Below is a list of some of the properties used to define the position and look of a HUD slider. You can type these in yourself in the handle’s Default field in the type properties window, but it’s much easier to set up the slider the way you want it before promoting it.
The HUD slider’s position in the viewer pane.
The HUD slider’s size.
Control where the labels are positioned.
Put your HUD slider in a group that will dock with other HUD sliders in the same group that are positioned correctly.
The high and low limits on the value.
The slider’s range.
The original owner of the parameter being controlled.