Search - User list
Full Version: extending nodes with python
Root » Technical Discussion » extending nodes with python
SElsner
Hi,

what is the best practice to extend a node for example adding a tab with custom parms

1) For HDAs, I can do this via the type properties dialog. Extending the mantra node for example, changes are of course saved on the local OPlibdriver and not on a central $HSITE. I do not want to copy it there because every time the mantra node gets an update I would have to redo everyting. And this only works for HDAs. Or is there a way addon to a HDA.

2) On a sphere node I cannot edit operator types, but the Parameter Interface. but how is this saved?

3) monkey patch hou.Node.createNode with something like:



def customCreateNode(*args, **kwargs):
# create node then do something with it like attaching new parms
pass

hou.Node.createNode = customCreateNode



This is how it works in Nuke but its giving me errors I have to investigate…

4) regular callback (I could not find in the docs)

5) Other solution?

Cheers

Sebastian
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB