Actions timeline and normal timeline?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
lehtiniemi
Posts: 107
Joined: Mon Jan 14, 2013 3:18 pm

Actions timeline and normal timeline?

Post by lehtiniemi »

How do you manipulate action timeline? I mean, what's the structure? There seems to be function ActivateAction (or something like that) that "activates action timeline for editing". What does this mean?

Let's say I activate action for a bone layer. Does every keyframe I add to any layer under the bone layer go into action timeline I activated? And I just leave by ActivateAction(--- Mainline ---)? Or how does it work?
User avatar
synthsin75
Posts: 9968
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Actions timeline and normal timeline?

Post by synthsin75 »

Yes, once you've activated an action timeline, and keyframes will be added to the action. ActivateAction(""), with an empty string, returns to the main timeline.
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: Actions timeline and normal timeline?

Post by Stan »

ActivateAction(""), with an empty string, returns to the main timeline
I think it's ActivateAction(nil), not an empty string.
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
synthsin75
Posts: 9968
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Actions timeline and normal timeline?

Post by synthsin75 »

Stan wrote:
ActivateAction(""), with an empty string, returns to the main timeline
I think it's ActivateAction(nil), not an empty string.
You're right. An empty string just creates an unnamed action. I got that confused with the test for the mainline: (moho.layer:CurrentAction() ~= "")
lehtiniemi
Posts: 107
Joined: Mon Jan 14, 2013 3:18 pm

Re: Actions timeline and normal timeline?

Post by lehtiniemi »

EDIT: Thanks! :)
Post Reply