If you are creating
HScript scripts or even
Python scripts, finding the internal names Houdini uses to create nodes can be a mission. Sort of like the ones Colt Seavers goes on. Autodesk Maya users have a handy function that echoes all its MEL commands to its script editor. As you work in Maya, all the commands Maya uses internally to execute actions and change the user interface will be printed in the Script Editor. Have no fear though, Houdini has its own version. It’s also quite easy to enable and disable the echoing of commands. Here is how to echo HScript commands in Houdini.
Echo On & Off
We first need to open our favorite pane, the
Textport. Afterwards, all it takes is the use of the
commandecho command and an
off argument. This is the signature:
So as you might have guessed, all you do is type the command followed by
on if you want to enable echoing of Hscript commands or
off if you want to disable the option. One thing to note is the
on option is not persistent throughout Houdini sessions.
Very nice! now when you drop a node, the HScript code on how to recreate the operation is echoed in the
Textport. Now, there are a great deal of things going on that Houdini does that are not echoed in the output of the command. Think of it as a simplified echo. It may not be as robust as Maya’s echo functionality but nevertheless, it is still handy for debugging purposes.
In order to turn off the option, just pass the
off option and it poofs away. That’s it!