Request is logged as #36845 if anyone wants to chime in.

-Nathan


On Jul 5, 2013, at 8:28 PM, "Frank Rueter" <[email protected]> wrote:

> Can't hurt to send it. I wouldn't be surprised if there are a few feature 
> requests that can be consolidated with this once.
> 
> 
> 
> On 6/07/13 2:49 PM, Nathan Rusch wrote:
>> I would love to see this implemented as well. Anyone have a feature request 
>> in yet? If not, I'll add one and throw up the ID.
>> 
>> -Nathan
>> 
>> 
>> -----Original Message----- From: Frank Rueter
>> Sent: Friday, July 05, 2013 7:31 PM
>> To: [email protected]
>> Subject: Re: [Nuke-python] Getting mouse cursor location in DAG?
>> 
>> 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 <[email protected]
>>>>> <mailto:[email protected]>> 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
>>>>>    <[email protected] <mailto:[email protected]>> 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 | [email protected] <mailto:[email protected]>
>>>>>        rising sun pictures | www.rsp.com.au <http://www.rsp.com.au>
>>>>>        _______________________________________________
>>>>>        Nuke-python mailing list
>>>>>        [email protected]
>>>>>        <mailto:[email protected]>,
>>>>>        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
>>>>>    [email protected]
>>>>>    <mailto:[email protected]>,
>>>>>    http://forums.thefoundry.co.uk/
>>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Nuke-python mailing list
>>>>> [email protected],http://forums.thefoundry.co.uk/
>>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Nuke-python mailing list
>>>> [email protected], http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>> 
>> 
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to