Since Nuke 6.3v5 includes PySide, so you can just do:

from PySide import QtGui

clipboard = QtGui.QApplication.clipboard()

print clipboard.text() # show current clipboard contents
clipboard.setText("Yay") # set clipboard

..which should work fine on any platform, without having to build
external stuff

On 31/10/11 22:31, Kurian O.S wrote:
> windows or linux ?
> 
> On Mon, Oct 31, 2011 at 10:48 PM, Tim Marinov <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi guys.I am new to this mailing list.
>     I have one question that have been bugging /me lately.
>     /Is there a native Nuke way to copy a string to windows clipboard in
>     python? I don't want to import and install external modules that
>     doesn't come with nuke installation.
>     Is there any workaround?
> 
>     _______________________________________________
>     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
> 
> 
> 
> 
> -- 
> --:: Kurian ::--
> 
> 
> 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

-- 
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
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