Tool to globally delete keyframes from cursor position

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Tool to globally delete keyframes from cursor position

Post by Touched »

Script tool mod by Shawn the Touched
"Key None"
version 1, 2007-02-28

This script goes in your "scripts\tool" folder. A new tool will appear in your Tools palette, an image of a key with a red X. Select this tool, then click anywhere on your stage, and all keyframes at the current position on the timeline will be deleted, on ALL layers and sublayers. Beware, separate group or bone layers are not protected from this.

Here's an alternative tool button for it:
Image
(Right-click, save as, put in your tool folder.)

This tool was modified from Julien Stiegler's "key all" tool script. It does not seem to affect keyframes for bone dynamics or locking, but all other channels are removed.

http://whiteradish.drowtales.com/moho/st_key_none.zip
EDIT: Fixed old URL, added alternative button
Last edited by Touched on Sun Aug 02, 2009 2:02 pm, edited 4 times in total.
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Yeah! Good script Touched!
I will test right now!
Does it allow the undo command?

Genete
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Post by Touched »

I believe so, it has that "set dirty" command in it. BTW, please re-download the script. I've just re-uploaded it with some cleaning so that it doesn't pop up that Lua console when you use it.

Well, maybe I should have left the Lua console in there. Because if you have a lot of layers, without the console showing you progress, it may not appear to be doing anything for a while. But it's working, and I personally prefer no console.

One issue with this script is that it collapses the layer lists and sets it to show all layers. I don't know enough about Lua scripting to prevent this. Can someone else help there?
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

I've tested second version only. It works very well. For me it is not a problem that it collapses all the layers... It can be used to collapse quickly a very complex setup if you do it at frame 0... :wink:
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

Curvature channel and line thick channel are not affected.
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Post by Touched »

Hmm, you're right... What are the variables for setting keyframes for those elements?
stefman
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Post by stefman »

Hello Touched,

I just found your thread about your script.
And, I find that it sounds extremly useful.

I would really like to try it.

Unfortunately, the link is off.

Would you mind to reactivate one as you kindly did for the key all script?
This would be great and I would be deeply greatful.

cheers,

stefman
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Post by Touched »

Here we are. The site went through some restructuring a while ago, breaking all old links. Here it is again.
http://whiteradish.drowtales.com/moho/st_key_none.zip
stefman
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Post by stefman »

Thank you very, very much.

And, it works fine. This script is a real big help.

Cheers,

stefman
User avatar
Touched
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California
Contact:

Post by Touched »

Glad it could be of use! :)
Added another button in the original post you can use to replace the "key with X" button, if you wish.
stefman
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Post by stefman »

Yes, thank you,

the socond image is more self-explanatory.

Cheers,

stefman
Post Reply