Kristen Eggleston
  • Demo Reel
  • Blog

Callback Scripts

6/25/2013

 
I've been using callback scripts heavily to change settings within the shader so that the user won't have to. For some reason I always forget to switch the language to python from hscript! That is the first thing I check when my scripts do nothing.
if hou.pwd().parm("placeChoice").eval() == 1: hou.pwd().hdaModule().makePainty("moss")
In pseudo code:
If the parameter on this node is equal to one, run the "makePainty" function attached to this node and pass the token "moss".

Comments are closed.

    Author

    Compilations and contemplations of my time as a Side Effects intern.

    Archives

    November 2025
    August 2013
    July 2013
    June 2013

    Categories

    All
    Discoveries
    Fun Renders
    It Totally Works
    New Feature
    Personal
    Problems
    Uber Shader

Proudly powered by Weebly