Adding spare parms is resetting other parms ??

   993   1   1
User Avatar
Member
13 posts
Joined: Oct. 2015
Offline
Hi everyone,

I am adding a rendering parm to a ROP using:

ptg = node.parmTemplateGroup()
tpt = hou.ToggleParmTemplate(“vm_dicingquality”, “Enable Dicing”, default_value=True)
tpt.setJoinWithNext(True)
target_folder = (“Rendering”, “Dicing”)
ptg.appendToFolder(target_folder, tpt)
node.setParmTemplateGroup(ptg)

or

myParms = hou.ToggleParmTemplate(“vm_dicingquality”, “Enable Dicing”, 1)
node.addSpareParmTuple(myParms ,('Rendering', ‘Dicing’))

This adds the parm but, some of my settings on Image Planes are reverted to default.
For example Light Exports are set back to “No Light Exports” also if I have Override Camera Resolution checked, then Resolution Scale is also set to 1/10…

Any idea what might be happening?

Thanks,
ak
User Avatar
Member
43 posts
Joined: Jan. 2012
Offline
same here, can anyone give us a clue what is going on and how to avoid this or do it properly ?

Thanks
Michal Tas Maciejewski @ Weta Digital
  • Quick Links