Application.Copy()

Date : Tue, 17 Apr 2007 09:04:21 -0400
To : XSI(at)Softimage.COM
From : Nicolas Langlois <nicolasl(at)buzzimage.com>
Subject : Application.Copy()
Hello list,

I'm having a little trouble trying to copy some data (one float number for now) straight to the clipboard at the end of a script. I tried converting it to a string since Application.Copy seems to work with a string but it still doesn't work. It seems like a very simple question but I can't seem to find the solution. Anyone has done this before???

Here's some code (Python) to show you a little what I tried:

distance = 3.4567
Application.Copy(distance)
# try to paste it anywhere, it doesn't paste 3.4567

# convert it to a string before
distance = 3.4567
Application.Copy("%s" % distance)
# try to paste it anywhere, it still doesn't paste 3.4567

# convert it to a list of string since the doc seems to imply a list
distance = 3.4567
Application.Copy(["%s"] % distance)
# try to paste it anywhere, it still doesn't paste 3.4567


Thanks for any help,

Nicolas Langlois
Senior Rigger / TD
Buzz Image


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.