FRAME JUMPING

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
toonertime
Posts: 595
Joined: Tue Feb 27, 2007 8:34 am
Location: ST. LOUIS

FRAME JUMPING

Post 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.
User avatar
synthsin75
Posts: 10280
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post 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:
User avatar
toonertime
Posts: 595
Joined: Tue Feb 27, 2007 8:34 am
Location: ST. LOUIS

wow

Post 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!
User avatar
toonertime
Posts: 595
Joined: Tue Feb 27, 2007 8:34 am
Location: ST. LOUIS

me again

Post 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!
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

This is GREAT! Thanks Synth!

-vern
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post 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.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
User avatar
synthsin75
Posts: 10280
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post 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.
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

thank you all!, I will try.
Post Reply