PDA

View Full Version : inputConnection not seeing boolean arg (Python)


pixelpickle
07-24-2009, 01:02 AM
Hi, I have a section of a script (written in Python) that duplicates an object a set amount of times with inputConnections (ic) set to True.

every so often however, I get a TypeError:
# TypeError: Flag 'ic' must be passed a boolean argument #

the portion of the code includes:

#Duplicate step by number user requested
userStpCount = mc.floatFieldGrp(stairAmount, query=True, value1=True)
mc.duplicate(ic=True)
userGate = mc.floatFieldGrp(stairGate, query=True, value1=True)
stepDup = mc.move(0,stepHeight,userGate)
for sCount in range(0,userStpCount - 2,1):
mc.duplicate(ic=True, st=True)

I've also switched the ic and st attributes around in the last line, with no difference.

CGTalk Moderation
07-24-2009, 01:02 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.