Community
Maya Animation and Rigging
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya animation topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

maya python threading.Thread TypeError

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
415 Views, 0 Replies

maya python threading.Thread TypeError

import sys

import json

import maya.cmds as mc

import threading

from multiprocessing import Queue

import pymel.core as pm

 

def test(blon):

      res = mc.listAttr("FKWrist_L", k=1)

t1 = threading.Thread(target=test, args=(True, ))

t1.start()

 

# # Exception in thread Thread-83:

# Traceback (most recent call last):

# File "C:\Program Files\Autodesk\Maya2020\bin\python27.zip\threading.py", line 801, in __bootstrap_inner

# self.run()

# File "C:\Program Files\Autodesk\Maya2020\bin\python27.zip\threading.py", line 754, in run

# self.__target(*self.__args, **self.__kwargs)

# File "<maya console>", line 14, in test

TypeError: Flag 'k' must be passed a boolean argument

 

 

hi, please help me

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report