Hey Diogo,

Problem with onCreate is it's too broad in its reach: also triggered when a
script loads or when a node's created from the toolbar, etc.

Doing what I need via a drop data callback is my current hack, but means I
have to deal with the rest of the stack if all I'm after is one node. This
could work, though, if I could extract my part of the text, return True on
that, but return None on the rest so Nuke deals with it. Is that possible?

Thanks,
Ean

On Mon, May 21, 2012 at 2:17 PM, Diogo Girondi <[email protected]>wrote:

> In theory onCreate() should catch any clipboard paste.
>
> The addDropDataCallback() also catches stuff pasted from the clipboard
> depending on what you need to do.
>
> Hop this helps.
>
>
> cheers,
> diogo
>
> On Mon, May 21, 2012 at 9:48 AM, Ron Ganbar <[email protected]> wrote:
>
>> There should be something.
>> Otherwise how does the paste into the DAG work?
>>
>> R
>> On May 21, 2012 1:12 PM, "Ean Carr" <[email protected]> wrote:
>>
>>>  Hi,
>>>
>>> Would really like something like an onPaste callback. Anyone know if it
>>> exists but I'm just overlooking it? If not, will file a feature request.
>>>
>>> Cheers,
>>> Ean
>>>
>>> _______________________________________________
>>> 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