key all script help!!

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
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

key all script help!!

Post by ulrik »

So this is my story with js_key_all script!

My first idea was to implement all animated channels into the script, after a long tough brainboiling time I finally found that not all channels are able to implement........ugh, well at least I managed to get LineWidth, BoneLock (hmm..I could not figure out what use I would have to have it inside the script, so I through it out), BoneDynamics, ShapeEffect Transform and a couple of others.
Unfortunately I could not find a way to implement Curvature or ShapeEffect, and that's a pity. :(

My next idea was to make the script react like this:

Select the layer you want to key and that only, (and sublayers if you select group, bone or swith layers) will get keyed

press ctrl key + mouse - get only layer animated channels keyed
press alt key + mouse - get only bone animated channels keyed
press shift key + mouse - get only vector animated channels keyed

I wanted to have it this way because I use the script often and have found that all this "key all" keys interfered with further animating...

after a lot and lot of hours I finally got all this to work!! :D well, at least at the selected layer but all sublayers inside group, bone, and switch layers don't care if I have pressed alt, ctrl or shift key...... :x

So my question is if someone could help me with this issue I would be so happy so happy that I could send you a beer or two!

Anybody got a clue what to do?

Here's the "almost ready" script if you would like to study it.

http://www.musikboden.se/asfiles/key_test.lua

cheers!!
Post Reply