Parameter expressions lookup for a ptyhon shelf tool

   850   0   1
User Avatar
Member
4 posts
Joined: 10月 2017
Offline
Hi everyone!
I'm making a tool in which i need to get all the dependent and referenced nodes from a desired node, for the sake of simplicity, lets call my desired node to track all the correlations from, "myNode", to get all his linked parameters (integrers, toggles, floats, strings, etc.).

I was wondering if there's a more elegant way than brute-forcing it by checking all the myNode dependents and references with
hou.node(myNode.path()).dependents()
and
hou.node(myNode.path()).references()
respectively, appending them to, let's say a list called "myList" and later on excluding some nodes from "myList" by some rules.
As far as I understand it can work "properly" for simple scenes but once you got large scenes it gets tediously topsy-turvy and slow.

So I think that the way to go is with inlinecpp code inside python, and I'd like to know about some hints or advices to lead me the way around the tool, nothing too concrete nor elaborated, but a general organized brainstorming overview and some possible handicaps, like: useful HDK Libraries and how to work with them, etc.


Thanks in advance! <3
Edited by FrostyNugget - 2022年1月13日 10:09:15
  • Quick Links