hou.nodeType() not represent all parms.

   1405   2   1
User Avatar
Member
209 posts
Joined: Nov. 2010
Offline
Hi all,

I tried to copy all ParmTemplateGroups from “ifd” node to other ROP but it is not work for all properties (build 16.5.268).

current_node=kwargs["node"]

rop_t=hou.ropNodeTypeCategory()
origin=hou.nodeType(rop_t,"ifd")
origin_pt=origin.parmTemplateGroup()

current_node.setParmTemplateGroup(origin_pt)

In this case you will miss most properties.
I found solution in HScript ‘opproperty’ command which can fill all other properties but looks like it is not the best solution.
Maybe somebody know better solution ?

Cheers
Ostap
User Avatar
Member
7770 posts
Joined: Sept. 2011
Offline
If you find specific parm templates that are not copying over in python, please submit them as bugs to support.

Until all the parm types/tags are enumerated in the python hom, the only way to copy the interface 100% reliably is with ‘opspareds’ hscript command which uses the internal dialogscript format to set the node's parameter templates.
User Avatar
Member
209 posts
Joined: Nov. 2010
Offline
Hi,

Thanks for response.

I'm not sure that it is a bug.
Looks like they(Sidefx) have some reasons to put there only part of parmTemplate otherwise why they support it from version to version:
Houdini 15 - don't have any additional “onCreate” behavior
Houdini 16 - “onCreate” has $deprecated_ifd_ran with opproperty (which can add properties)
Houdini 16.5 - they remove $deprecated_ifd_ran with opproperty

And question is how to work correctly with ‘mantra’ parmTemplate?
How to add all properties ?


Cheers
Ostap
  • Quick Links