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