Saori Yoshimoto work notes since 2018

Monday, July 15, 2019

[Hython] Change the forced some parameter of mantra node

#Change the forced some parameter of mantra node
parent = hou.node("/obj/ropnet1")
setting1 = 'vm_samplesx'
setting2 = 'vm_samplesy'
setting3 = 'vm_maxraysamples'
for child in parent.children():
    param1 = child.parm(setting1)
    param1.set(4)
    
    param2 = child.parm(setting2)
    param2.set(4)
    
    param3 = child.parm(setting3)
    param3.set(6)
    
"""
   if sstring in child.name():
      param = child.parm("matte_objects")
      if param is None:
         pass
      else: 
         print searchStr
         print replStr
         param.set(temp)
"""

Reference HP; Thx a lot!
https://tosinakinwoye.com/2014/05/04/houdini-python-snippets/
https://qiita.com/7of9/items/5fb6d57ccb0ce9a47dd6

No comments:

Post a Comment