Tool to globally delete keyframes from cursor position

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Tool to globally delete keyframes from cursor position

Postby Touched » Wed Feb 28, 2007 7:48 pm

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.
User avatar
Touched
 
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California

Postby Genete » Wed Feb 28, 2007 8:03 pm

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

Genete
User avatar
Genete
 
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Postby Touched » Wed Feb 28, 2007 8:10 pm

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?
User avatar
Touched
 
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California

Postby Genete » Wed Feb 28, 2007 8:32 pm

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:
User avatar
Genete
 
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Postby Genete » Wed Feb 28, 2007 8:37 pm

Curvature channel and line thick channel are not affected.
User avatar
Genete
 
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Postby Touched » Wed Feb 28, 2007 8:50 pm

Hmm, you're right... What are the variables for setting keyframes for those elements?
User avatar
Touched
 
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California

Postby stefman » Sun Aug 02, 2009 12:42 pm

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
stefman
 
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Postby Touched » Sun Aug 02, 2009 1:26 pm

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
User avatar
Touched
 
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California

Postby stefman » Sun Aug 02, 2009 1:37 pm

Thank you very, very much.

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

Cheers,

stefman
stefman
 
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm

Postby Touched » Sun Aug 02, 2009 1:57 pm

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.
User avatar
Touched
 
Posts: 504
Joined: Mon Dec 11, 2006 7:33 am
Location: Sunny California

Postby stefman » Sun Aug 02, 2009 2:34 pm

Yes, thank you,

the socond image is more self-explanatory.

Cheers,

stefman
stefman
 
Posts: 75
Joined: Mon Jul 20, 2009 6:46 pm


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests