So i'm trying to delete keyframes via python script.
And the following line is working just fine:
cmds.cutKey(time=(5, 10))
However, if i'm trying to use negative time value it's doesnt work:
cmds.cutKey(time=(-5, 1))
and returns an error:
# Error: TypeError: file <maya console> line 1: Error retrieving default arguments #
is there a way to use negative time value in maya via python?
Thanks!
Solved! Go to Solution.
Solved by mspeer. Go to Solution.
Hi!
What Maya version are you using?
Here it works.
Are you sure you had an object selected, cause if nothing is selected, then you get this error.
well, it's seems like it was some kind of a glitch - I've just reloaded maya and everything works like a charm
thanks!
Can't find what you're looking for? Ask the community or share your knowledge.