Feedback

What's your question?

By: Asked

Delete keyframe

Hi all I would like to know the command in mel to be able to delete all the keyframe created by me. Thanks for the help

Add comment viewed 544 times Latest activity 7 months ago

or Cancel

2 answers

  • 0

julian [ Admin ]

You can use the "cutKey" command.

cutKey pSphere1.tx // deletes all keys from the translateX channel
cutKey  -t "15:25"  pSphere1.tx pSphere1.ty // delete keys from translateX and translateY between frames 15 and 25

There are many more options. Here's the cutKey documantation

or Cancel
  • 0

maulik13 [ Editor ]

You can also find all animation curve nodes and delete them. Animation curve node type can be either of the followings: animCurveTL time distance animCurveTA time angle animCurveTT time time animCurveTU time double

you can use the following(not tested)

$sel = `ls -typ "animCruveTL"`;
for($i=0; $i<size($sel); $i++){
    delete $sel[$i];
}
or Cancel