Couldn't agree more.
A world of possibility would open and possibly take a lot of pressure of the dev team to enhance UI.


On 5/07/13 10:02 PM, Ben Dickson wrote:
Indeed!

Seems like the easiest and most flexible way would be to make it easier to access the underlying Qt widgets. It's already "kind of" possible thanks to the nice PySide integration, but many things are difficult or awkward

Something like

nuke.activeViewer().getWidget()
nuke.selectedNode().getPropertiesWidget()
nuke.selectedNode()['size'].getWidget()

..would allow for many interesting things to be implemented

On 04/07/13 14:40, Frank Rueter wrote:
I do wish the pytho api would report more general UI events such as
this. A lot of awesome workflow tools and DAG behaviour could be written.

On 04/07/13 17:07, John Vanderbeck wrote:
At one place I worked at, one of the engineers made a simple node with
the NDK that reported mouse stats. It worked well overall but was a
bit was buggy. There is no way to get that information from Nuke in
Python unless it has been added recently.

- John Vanderbeck
- http://www.johnvanderbeck.com


On Wed, Jul 3, 2013 at 9:25 PM, Nico Dufort <nduf...@gmail.com
<mailto:nduf...@gmail.com>> wrote:

    Select/Cut/Click DAG/Paste to where you clicked does not work for
    you/your artists?

    Not being a smart ass, but since the click on your DAG already
    dictates where nodes can be created/pasted, why not go simple...


    On Wed, Jul 3, 2013 at 8:46 PM, Ben Dickson
    <ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au>> wrote:

        Is there any way to get the location of the cursor in the node
        graph?

        There's a few reasons this would be useful, but.. currently
        I'm trying to write a tool where you select a bunch of nodes,
        press a button and have those nodes be moved to the mouse
        location - theoretically making it easier to move nodes around
        while zoomed


        I tried creating a node with nuke.createNode(), and querying
        it's location.. but this isn't reliable: if I click first then
        it works, but subsequent runs create the temp node just below
        the previous location, no where near the mouse


        def thing():
        selection = nuke.selectedNodes()
        [n.setSelected(False) for n in selection]

        # Get mouse position
        n = nuke.createNode("NoOp")
        x, y = (n.xpos(), n.ypos())
        nuke.delete(n)

        # Restore selection
        [n.setSelected(True) for n in selection]

        # Do something interesting with mouse position
        b = nuke.nodes.Blur()
        b.setXYpos(x, y)

        nuke.menu("Nodes").addCommand("thing", thing, "alt+a")


        Only other way I can think of is with PySide: you could get
        the mouse coordinates, and using the DAG widget get "widget
        space" coordinates.. but I can't think of a way to transform
        these into nodegraph coordinates (maybe impossible without
        changes to Nuke, at which point it would be just as easy to
        add a "getMouseCoordinates" method)
        --
        ben dickson
        2D TD | ben.dick...@rsp.com.au <mailto:ben.dick...@rsp.com.au>
        rising sun pictures | www.rsp.com.au <http://www.rsp.com.au>
        _______________________________________________
        Nuke-python mailing list
        Nuke-python@support.thefoundry.co.uk
        <mailto:Nuke-python@support.thefoundry.co.uk>,
        http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python




    --
    "Attention, attention. Here and now, boys," the mynah repeated.
    "Here and now, boys."

    _______________________________________________
    Nuke-python mailing list
    Nuke-python@support.thefoundry.co.uk
    <mailto:Nuke-python@support.thefoundry.co.uk>,
    http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python




_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to