Nudg Kets toolset

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
wena
Posts: 107
Joined: Wed Jul 09, 2008 1:31 pm

Nudg Kets toolset

Post by wena »

please tell me what do these toolset do?


Wena Parry
Rudiger
Posts: 786
Joined: Sat Dec 17, 2005 5:25 pm

Post by Rudiger »

To put it as simply as I can,
rt_prevkeyframe.lua takes the cursor to the previous keyframe on the current layer.
rt_nextkeyframe.lua takes the cursor to the next keyframe on the current layer.
rt_nudgekeysleft.lua nudges to the left by 1 place all keys at and to the right of the cursor for current and child layers.
rt_nudgekeysright.lua nudges to the right by 1 place all keys at and to the right of the cursor for current and child layers.
rt_globalnudgekeysleft.lua nudges to the left by 1 place all keys at and to the right of the cursor for all layers in the document.
rt_globalnudgekeysright.lua nudges to the right by 1 place all keys at and to the right of the cursor for all layers in the document.

However, I am now getting pretty close with the new version of this toolset (currently testing and debugging it), which rolls all of these separate button scripts into a single tool script, but still with the same shortcut keys.
rogermate
Posts: 298
Joined: Sun Jun 01, 2008 9:53 pm
Location: Mars

Post by rogermate »

Rudiger wrote:To put it as simply as I can,
rt_prevkeyframe.lua takes the cursor to the previous keyframe on the current layer.
Can it handle sublayers of the current layer?
User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Rudiger wrote:However, I am now getting pretty close with the new version of this toolset (currently testing and debugging it), which rolls all of these separate button scripts into a single tool script, but still with the same shortcut keys.
Does that means you can add shortcuts to buttons which are "inside" a tool??
Rudiger
Posts: 786
Joined: Sat Dec 17, 2005 5:25 pm

Post by Rudiger »

rogermate wrote:
Rudiger wrote:To put it as simply as I can,
rt_prevkeyframe.lua takes the cursor to the previous keyframe on the current layer.
Can it handle sublayers of the current layer?
The prev and next keyframe shortcuts are designed to mimic the built-in prev and next keyframe buttons that are in Anime Studio 6, so they only look at keyframes in the current layer. However, you could generate a consolidated timeline layer, which is now a button inside the same tool and with its own shortcut key, to generate keys for all sublayers. You would then be able to jump between these generated keys. However, if people think it would be useful to be able to jump to sublayer keys, then I could add it as another option.
selgin wrote:
Rudiger wrote: However, I am now getting pretty close with the new version of this toolset (currently testing and debugging it), which rolls all of these separate button scripts into a single tool script, but still with the same shortcut keys.
Does that means you can add shortcuts to buttons which are "inside" a tool??
Yes you can, but of course the shortcuts are only active when the tool is selected, unless you add the shortcut key to every single tool. I don't think it's a big issue though, you just need to hit two keys instead of one.
User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Rudiger wrote:Yes you can, but of course the shortcuts are only active when the tool is selected, unless you add the shortcut key to every single tool. I don't think it's a big issue though, you just need to hit two keys instead of one.
That's fantastic!
rogermate
Posts: 298
Joined: Sun Jun 01, 2008 9:53 pm
Location: Mars

Post by rogermate »

Rudiger wrote: However, you could generate a consolidated timeline layer, which is now a button inside the same tool and with its own shortcut key, to generate keys for all sublayers. You would then be able to jump between these generated keys.
I don't understand what happens when a consolidated timeline layer is generated

Are keys copied (by reference) to a consolidated layer, or are they moved?
Is the consolidation of channels for the whole project, or of sub layers of the current layer.

Did you release the newer version you were working on?

Thanks again.
Rudiger
Posts: 786
Joined: Sat Dec 17, 2005 5:25 pm

Post by Rudiger »

It's a shame we're posting in this thread as I would prefer to have all of the info about the nudge toolset under the main thread. Hopefully when, Heyvern comes back, he can tidy this up for us.

Anyway, the consolidated layer is a lot dumber than it looks. When you generate it, all that happens is that you get a key on the point channel wherever there is a key of any type on the consolidated layer's sibling layers and their children. When you use the nudge tools in the consolidated layer the point keys are nudged as well as the keys in all sibling layers and their children, so it appears as if the consolidated layer keys are magically linked to the keys in its sibling layers, but this is not the case or even possible. This means that if you move the keys in the consolidated layer or its sibling layers by dragging them around in the timeline window then the consolidated layer will get out of sync and will need to be regenerated.

Oh and, no I haven't released the new version. Too many distractions, ugh!
Post Reply