ScriptSpot

Forum topic · General Scripting

How can I delete currenttime keys directly in trackbar from many objects selected??

By rodimus111 · 2011-02-26

Description

I have 1000 objects in my scene and I need a fast script to do it.

I have over 1000 objects selected. Many of them haves a key in the frame 50. I think if there is a script to select and delete directly from the trackbar in frame 50, would be very fast and simply. But the only way I know is to create a large loop, searching and deleting keys from each element.

Comments (2)

Here!

JokerMartini · 2011-03-01

Here you go bud.


for i=1 to selection.count do
(
obj = selection[i]
try(
selectKeys obj sliderTime
deleteKeys obj #selection
)catch()
)

rodimus111 · 2011-02-26

In other words, I need a function like:
Deletekeys from trackbar in currenttime