XSI + Python + Threading

Date : Fri, 14 Apr 2006 12:10:16 -0700
To : XSI(at)Softimage.COM
From : Andy Buecker <abuecker(at)ilm.com>
Subject : XSI + Python + Threading
Anyone have any luck with running python threads in XSI? My instance to the XSI Application object keeps getting munged. Hints/ tricks/ sol?

import threading

class One( threading.Thread ):
def run( self ):
for i in range(5):
print 'One', i
import time
time.sleep(1)
print 'Application(Thread) %s' % self.xsi
self.xsi.logmessage( 'Ass' )
class Two( threading.Thread ):
def run( self ):
for i in range(5):
print 'Two', i
import time
time.sleep(1.5)
Application.logmessage( 'Application: %s' % Application )
one = One()
one.xsi = Application
one.start()
Two().start()



Thanks!

-A

---
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.