[Sidefx-houdini-list] Layout neetwork editor using python

Graham Thompson captainhammy at gmail.com
Wed Jun 30 14:34:10 EDT 2010

Getting the selected node(s) is easy.  hou.selectedNodes()

There should be lots of examples of traversing input nodes in toolutils.py.

As for laying them out, you can get the parent of your selected nodes
and call hou.Node.layoutChildren(nodes_to_layout) or you could roll
your own layout algorithm.  I believe Luke's masterclass at Siggraph
2007 had an example of using pygraphviz to do just that.

2010/6/30 Pablo Giménez <pablogipi at gmail.com>:
> Hi.
> I am trying to get the selected node in the current network editor, select
> it inputs and then layout them.
> Have everybody done the same before using python?
> Thanks
> --
> Un saludo
> Best Regards
> Pablo Giménez
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

More information about the Sidefx-houdini-list mailing list