Page 1 of 1

FRAME JUMPING

Posted: Sun Jan 04, 2009 1:55 pm
by toonertime
I am wondering if a script can be made for the
timeline window that will allow moving down the
timeline a set number of frames?

Say you want to make a movement on 2s or 12s
or whatever. You would want to jump from frame
12 to 24 to 36. I am thinking that the tab key would
be logical. You hit the tab, it says how many frames
do you want to be jumping. You punch in X for a unit
and frame movement with the tab key will then be in
those amounts of frames. Control tab would jump
you back those frames.

Posted: Sun Jan 04, 2009 7:33 pm
by synthsin75
http://www.mediafire.com/?mrc3gvbt10z

Here you go!

This may not be implemented how you want, but I couldn't think of any other way. Drop these into your AS 'tool' folder.

This tool has a 'Set increment' number that can be set at the top of the workspace. Ctrl+left/right arrows will move the time up/down by that increment.

I'd suggest giving this a shortcut key to make it more useful. To do that, just add 'tool syn_time_skip ...' anywhere you want in the _tool_list.txt found in the AS 'tool' folder. Just change the '...' to what ever free key you want for the shortcut.

Hope that's pretty much what you had in mind. :wink:

wow

Posted: Sun Jan 04, 2009 9:07 pm
by toonertime
Gee Mr. Synth

This is an AMAZIHNG support site for AS!

Thank you so much in advance for your
attention to the request!

I haven't downloaded or tested it yet,
but thank you in advance. I will give
you feedback later after i play with it.

THanx so very much!

me again

Posted: Sun Jan 04, 2009 9:20 pm
by toonertime
I just installed the script and put your
button in a navigation group I have.

I is a wonderful tool, and the control
arrow system works great!

You the man!

Posted: Sun Jan 04, 2009 9:32 pm
by heyvern
This is GREAT! Thanks Synth!

-vern

Posted: Sun Jan 04, 2009 9:51 pm
by Víctor Paredes
thank you very much, it's pretty useful.
can it be assigned to other tools? (I remember select layer tool, which could be linked in any tool just adding a couple lines to the script).

I would love to have it as default in most tools.

Posted: Sun Jan 04, 2009 10:58 pm
by heyvern
Yes, this could be added to the other tools. It would go in the "onkeydown" function. The tricky part is the key shortcut. It would conflict with the "nudge" points or bones which uses the same key combo (ctrl-arrow). I haven't experimented with this option yet. Will check to see if adding another key (like alt) to the combo would work. Maybe just using totally different keys with ctrl will work as long as it doesn't conflict with system commands.

-vern

Posted: Sun Jan 04, 2009 11:39 pm
by synthsin75
Yeah Selgin, as long as the ctrl+left/right arrow isn't being used in the tool, you should be able to add the 'Syn_TimeSkip:OnKeyDown(moho, keyEvent)' function under the same function in the tool. Or if it doesn't have an 'OnKeyDown' function, you'll have to create one and add the TimeSkip function. Here's an example of adding it to the LM translate points tool:

Code: Select all

function LM_TranslatePoints:OnKeyDown(moho, keyEvent)
Syn_TimeSkip:OnKeyDown(moho, keyEvent)
end

I didn't expect this to be all that useful. Glad I wrote it now.
:wink:

p.s. Vern answered before I could. Personally, I don't use any of the tools' 'nudge' features, so I'd just replace it with this one.

Posted: Sun Jan 04, 2009 11:43 pm
by Víctor Paredes
thank you all!, I will try.