Kristen Eggleston
  • Demo Reel
  • Contact
  • SESI
  • Explorations in Renderman
  • Mechanical Spiders

Callback Scripts

6/25/2013

0 Comments

 
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".
0 Comments



Leave a Reply.

    Author

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

    Archives

    August 2013
    July 2013
    June 2013

    Categories

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

Proudly powered by Weebly