maya python api error

maya python api error

sidchou93
Enthusiast Enthusiast
604 Views
1 Reply
Message 1 of 2

maya python api error

sidchou93
Enthusiast
Enthusiast

https://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/keyframe.html

Im using the setkeyframe method, in the api it say theres a tickDrawSpecial(tds) that takes boolean, but im getting invalid flag

 

```

t = cmds.currentTime(query = True)
cmds.setKeyframe(time = t, tds = True)

```

Accepted solutions (1)
605 Views
1 Reply
Reply (1)
Message 2 of 2

RFlannery1
Collaborator
Collaborator
Accepted solution

The link you posted is for the "keyframe" command; not the "setKeyframe" command.  Try using "keyframe" and see if that makes your code work.