Created
February 27, 2022 06:05
-
-
Save kickbase/d084f679ee6cea17edfe234e5a805775 to your computer and use it in GitHub Desktop.
[Houdini] [Python] Clear params button in HDA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node = hou.pwd() | |
geo = node.geometry() | |
for p in node.parms(): | |
try: | |
if p.name() != "python": | |
p.revertToDefaults() | |
except: | |
pass |
to refresh inside folder0:
node = hou.pwd()
geo = node.geometry()
l = node.parm("folder0").eval()
for i in range(l):
p = node.parm("slider{}".format(i+1))
p.revertToDefaults()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Button callback Script: exec(hou.pwd().parm("python").eval());
python parameter (multi-line string) is invisibled.