20.08.2015 Views

TECHNICAL PAPER Building Tools for Houdini 9

TECHNICAL PAPER Building Tools for Houdini 9 - Digital Cinema Arts

TECHNICAL PAPER Building Tools for Houdini 9 - Digital Cinema Arts

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.What are <strong>Tools</strong> and how are they used?This document defines tools as items that exist on the Shelf or in the TAB Menus. In their most basic incarnationtools are python scripts that per<strong>for</strong>m actions when a button on the Shelf is pressed or when an item isselected from a TAB Menu in any of the contexts that support them.All operators in <strong>Houdini</strong> are now defined as tools. A tool can per<strong>for</strong>m a function as simple as placing a singlenode or changing a node’s parameters. It can be as complex as placing multiple Digital Assets based onprompted input from the user.Some Examples are:Scripts that...▪▪▪▪▪▪▪▪Place new nodesModify existing nodesModify or create workspacesControl aspects of a pipelineNodes created using...▪▪▪▪▪▪Digital Assets (e.g. the Auto Rig nodes)VEX code (e.g. the Mountain SOP)HDK programmingCharacteristics▪▪▪▪▪▪Every tool has a python wrapper script that defines the way it behaves<strong>Tools</strong> know what context they’ve been invoked from and can adjust their behavior accordingly.<strong>Tools</strong> know what to work on based on selections. Status in<strong>for</strong>mation available to a tool includes:○○ The current operator (furnishes in<strong>for</strong>mation about node type and parenting)○○ A list of the selected nodes, objects, or components○○ The current viewport and desktopWhere are <strong>Tools</strong> Found?While tools can be used from a wide variety of contexts including the Main Menus, RMB Menus, the shell andcmd files, and bound to Hot Keys, we are limiting our scope here to the two main contexts most used by artists,namely the Shelf and TAB MenusOn the ShelfFigure 1 - Each of these icons represents a tool<strong>Houdini</strong> ships with many predefined shelves each of which consists of a set of tools with related functionality.Many of these are “automatic” tools – i.e. their behavior is limited to placing a node. However there are alsogood examples of more complex tools that prompt the user <strong>for</strong> interaction and build node trees. The user canmodify these existing tools or add new ones, as well as reconfiguring the contents of the shelves.<strong>Building</strong> <strong>Tools</strong> <strong>for</strong> <strong>Houdini</strong> 9 | 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!