Hi gang,

I'm getting a strange error in a very simple query of cmds.ls( type=
"transform", long=True ) running inside a PySide QThread.

I extracted the issue into a basic example that reproduce the issue:
https://gist.github.com/asisudai/9967431

The error is ( it actually prints out upside down like this, might not be 
related   ):

Flag 'long' must be passed a boolean argument: # TypeErrorreturn 
maya.cmds.ls( type="transform", long=True ) # Will give TypeError on 
long=True where True not a bool?!
#     #   File "c:/temp\threadTest.py", line 52, in funcA
result = self.function( *self.args, **self.kwargs )
#     #   File "c:/temp\threadTest.py", line 80, in run
# Traceback (most recent call last):



def funcA( data ):
    print "%s inside funcA" %threading.current_thread().name
    
    ## Here's the issue:
    # Running cmds.ls command will result in the TypeError where long=True 
isn't a Bool.
    return maya.cmds.ls( type="transform", long=True ) # Will give TypeError on 
long=True where True not a bool?!

    ## While running this ( or any other module/code will work?! why?
    # return [1,2,3] # Works


Any idea why?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/210f2ebd-077f-42bf-af20-fbbdb7e57163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to