Light work
Computer Arts presents a guide to scripting a custom interface panel to control the lighting in Houdini scenes.
One of the great features of Houdini is its ability to combine its native hscript with almost any other scripting language, enabling the user to create interactive interfaces that talk directly to the software. In this article, we will take a look at one such example, exploring the process of using Tcl/Tk to build a 'light lister': a custom panel that will enable us to control each individual light in a scene at the flick of a button.
Before starting scripting, it's always a good idea to sketch out the design for an interface, and what features it should contain. There isn't space to go into this in detail here, but the finished script contains a full description of the feature set, to which you can refer.
Over the course of the article, we will start with a very simple core script, then build upon it. The scripts corresponding to each stage of the process are included on the CD, so if you want, you can copy them to your Houdini scripts directory (as explained below) and run them from there. However, it is a good idea to type each one from scratch. You will learn much faster this way.
Click here to download the support files
Get the Creative Bloq Newsletter
Daily design news, reviews, how-tos and more, as picked by the editors.
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try first month for just £1 / $1 / €1
The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.
Related articles
- How to use Cosmos: a beginner's guide to the viral social media platform made for creatives
- How to plan and paint vibrant video game poster art: Duncan Fegredo shares his pro workflow
- How to make an atmospheric lunar creation in After Effects with Red Giant VFX plugins
- How to create a realistic peppermint candy material in Blender