I'm finding that this script will, in the best case, output nothing and, in the worst case, crash Maya. If I change the 1000 to 100, however, it works perfectly.
CODE
import threading
import maya
def sumItUp() :
maya.utils.executeInMainThreadWithResult( 'x = 0' )
for i in range( 1000 ) :
maya.utils.executeInMainThreadWithResult( 'x = x + %d' % ( i ) )
maya.utils.executeInMainThreadWithResult( 'print x' )
threading.Thread( target=sumItUp, args=() ).start()
I realise this script is absolutely useless, but it's a lot easier to read than the practical PyQt application I was writing that suffers from the same sort or problem ![]()
Any ideas?
Cheers!