Maya Python: takes exactly 1 argument (2 given)
问题 I'm really quite new to scripting in Maya. I've been working on a relatively simple tool that creates a simple UI that a user can use to constrain one object to another, but still have the freedom to move that object once its constrained. This is done using nested locators. If I run the following code I get the error msg: "# Error: attachObject() takes exactly 1 argument (2 given) # " import maya.cmds as mc from functools import partial #Class to hold UI methods class UI(): def __init__(self)