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?
Actions timeline and normal timeline?
Moderators: Víctor Paredes, Belgarath, slowtiger
-
- Posts: 107
- Joined: Mon Jan 14, 2013 3:18 pm
- synthsin75
- Posts: 9970
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Actions timeline and normal timeline?
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.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Actions timeline and normal timeline?
I think it's ActivateAction(nil), not an empty string.ActivateAction(""), with an empty string, returns to the main timeline
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
- synthsin75
- Posts: 9970
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Actions timeline and normal timeline?
You're right. An empty string just creates an unnamed action. I got that confused with the test for the mainline: (moho.layer:CurrentAction() ~= "")Stan wrote:I think it's ActivateAction(nil), not an empty string.ActivateAction(""), with an empty string, returns to the main timeline
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
-
- Posts: 107
- Joined: Mon Jan 14, 2013 3:18 pm
Re: Actions timeline and normal timeline?
EDIT: Thanks!