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

Pablo Giménez pablogipi at gmail.com
Wed Jun 30 19:19:05 EDT 2010


Cool thanks!

2010/6/30 Graham Thompson <captainhammy at gmail.com>

> 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
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



-- 
Un saludo
Best Regards
Pablo Giménez



More information about the Sidefx-houdini-list mailing list