ScriptSpot

Forum topic · Scripts Wanted

script to delete keys from timeline

By mark smith · 2013-03-01

Description

Hi I’m looking for away to delete frames from animation timeline.
When im using imported mocap to biped , it puts hundreds of keys down , so i have to go through by hand delete every
4 frames so im only left having every 5th frame left .
is there such a script ???

thanks

Comments (3)

if no such script then write one

Anubis · 2013-03-01

here is something untested, but to get started

-- just for example...
-- [3][1][1] mean Transform/Position/X
track = selection[1][3][1][1].controller

-- select keys by skip each 5th
for i = 1 to track.keys.count where \
mod i 5 != 0 do selectKey track i

-- delete selected keys
deleteKeys track #selection

HI

mark smith · 2013-03-04

thanks for the reply , im am trying to get it to delete translation rotation and scale .
and working on a biped . thanks for your help mark