On Mon, 21 Mar 2016 8:24 AM Ravi Jagannadhan <[email protected]> wrote:

> Hi Justin, do you have any sample code for this? I am looking to do
> something similar in PySide.
>
> Thank you for your time,
> Ravi
>

I had, at one point, a really experimental port of a C++ lib where I was
trying to also make it a bit more flexible and extensible. But I had
deleted it after I just did it from scratch for an internal project, using
a simpler approach.

The original C++ lib was
https://github.com/nbergont/qgv

It lists a decent talk about how to use graphviz for this purpose
http://www.mupuf.org/blog/2010/07/08/how_to_use_graphviz_to_draw_graphs_in_a_qt_graphics_scene/


If I manage to find the PySide version I did, I will share it.

Justin

--
> "There are no dumb questions" - Carl Sagan.
>
> On Mar 20, 2016, at 11:41, Justin Israel <[email protected]> wrote:
>
>
>
> On Mon, 21 Mar 2016 5:02 AM Marcus Ottosson <[email protected]>
> wrote:
>
>> Hey Fredrik,
>>
>> If or when you get around to the automatic layout of nodes, I'd be
>> interested in following your progress! Graph layout is an exciting area,
>> but I could never quite get past the baby steps myself..
>>
>
> When I did a node graph type interface for a component of an app at work,
> I used graphviz to do all the heavy lifting for performing a node layout.
> The general idea is that when you need to layout, you build up a graph
> model of your nodes (X connects to Y, Y connects to Z) and pass it to
> graphviz either via the python API or shelling out to the "dot" command.
> You tell it to perform a certain type of layout with some options, and you
> get back a new graph that has the new positions for your nodes. Then you
> use that to move the nodes in your own node graph view.
>
>
>> On 16 March 2016 at 14:02, Fredrik Averpil <[email protected]>
>> wrote:
>>
>>> Hi Eric,
>>>
>>> Wow, very nice!
>>> This seems awesome, will check it out!
>>>
>>> Cheers,
>>> Fredrik
>>>
>>>
>>> On Wed, Mar 16, 2016 at 3:01 PM Fredrik Averpil <
>>> [email protected]> wrote:
>>>
>>>> Just found this:
>>>> http://austinjbaker.com/node-editor-prototype
>>>>
>>>> ...which is nice, for starters.
>>>>
>>>> Cheers,
>>>> Fredrik
>>>>
>>>>
>>>> On Wed, Mar 16, 2016 at 1:27 PM Fredrik Averpil <
>>>> [email protected]> wrote:
>>>>
>>>>> Hey everyone,
>>>>>
>>>>> This isn't really specific to Maya, but I figured I'd ask away in here
>>>>> anyways... :)
>>>>>
>>>>> So I'm thinking about creating a node graph view in PySide. Have you
>>>>> guys done anything like that?
>>>>>
>>>>> Basically, what I wish to do is to create a widget in which you can
>>>>> create nodes with inputs/outputs and move them around. Save their 
>>>>> positions
>>>>> etc.
>>>>>
>>>>> What would be a good way to approach this in PySide/PyQt do you think?
>>>>>
>>>>> Regards,
>>>>> Fredrik
>>>>>
>>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMwWjE4LsGKyQ4Uvu3-ghecz8sa0ajQeyCTcdLiTsJeEA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMwWjE4LsGKyQ4Uvu3-ghecz8sa0ajQeyCTcdLiTsJeEA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Marcus Ottosson*
>> [email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBuZvxq52-h5sXC-xA4_07cptO3jgpxHRSpynoiFbFZkA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBuZvxq52-h5sXC-xA4_07cptO3jgpxHRSpynoiFbFZkA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1pJBMOdun-Gu75-xBP5-zPYZ9HR7U3UFYXFvG6C_FPgw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1pJBMOdun-Gu75-xBP5-zPYZ9HR7U3UFYXFvG6C_FPgw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/4382B365-D6A0-4B1D-AC8C-C4B19544235D%40gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/4382B365-D6A0-4B1D-AC8C-C4B19544235D%40gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2i6mx1d_yUZt9NBQroTA3ckiMWckGMff-ghkh%3DJaSfkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to