Tech Tip Tuesday: Delete Key

This deletes the key on the current frame. It’s basically the opposite of setKeyframe, and something I always thought was missing from the default layout. If you set keys constantly, it stands to reason that you’d want to delete them just as easily, right? If you assign it to the “d” key (d for delete), it’s right next to “s” key. Now that feels nice and balanced.


if(size(`ls -sl`)) cutKey -clear -time `currentTime -q`;


import maya.cmds as mc
    mc.cutKey(clear=True, time=(mc.currentTime(query=True),))
Share Button
This entry was posted in Maya, MEL, Python, Tech Tip Tuesday. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *