I don't think it can.

My guess is the DAG's Qt Widget itself doesn't accept drops from anything
other than 'text/plain' types. Or it's probably trying to convert any type
to 'text/plain', and refuse the drop if it can't convert it.

If that's the case, then you won't be able to override that within the
dropData function (since that wouldn't even be called if the Widget doesn't
accept the drop).

Just my guess, though.

Cheers,
Ivan

P.S. Out of interest, what type of data are you trying to drop?

On Tue, Nov 15, 2011 at 9:23 PM, Johan Aberg <[email protected]> wrote:

>
> Can the DAG accept drops from mime data other than 'text/plain'?
>
> I haven't been able to get the DAG to accept other types.
>
> I tried to reimplement:
> nukescripts.dropData
>
> and add a new callback using:
>
> nukescripts.drop.**addDropDataCallback()
>
> thanks
>
>
> ______________________________**_________________
> Nuke-python mailing list
> Nuke-python@support.**thefoundry.co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-python<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