Skip to content

Instantly share code, notes, and snippets.

@gfxhacks
Created June 19, 2020 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfxhacks/efbeb46d16ed4fd12c7ad4b02da5172f to your computer and use it in GitHub Desktop.
Save gfxhacks/efbeb46d16ed4fd12c7ad4b02da5172f to your computer and use it in GitHub Desktop.
Some of the available Parameter types in Houdini: https://gfxhacks.com/create-parameters-in-houdini-with-python
# float
p = hou.FloatParmTemplate("float1", "Float 1", 1)
# button
p = hou.ButtonParmTemplate(
"btn1",
"Button 1",
script_callback='print("Hello World!")',
script_callback_language=hou.scriptLanguage.Python
),
# checkbox
p = hou.ToggleParmTemplate("check1", "Checkbox 1", default_value=True)
# separator
s = hou.SeparatorParmTemplate("sep1"),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment