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 if mc.ls(sl=True): mc.cutKey(clear=True, time=(mc.currentTime(query=True),))