Create action with script?
Moderators: Víctor Paredes, Belgarath, slowtiger
Create action with script?
Is it possible to create new actions using a script?
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Create action with script?
Yes, if I remember correctly, you just have to open an action for editing, but provide it with a new name that doesn't already exist as an action. Moho will then create an action with that new name.
EDIT: Yeah, it should be moho:ActivateAction(const char *name), with the argument being the new name.
EDIT: Yeah, it should be moho:ActivateAction(const char *name), with the argument being the new name.
- 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: Create action with script?
Thank you, moho.layer:ActivateAction(const char *name) works like a charm.
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Create action with script?
Oh yeah, forgot it was a layer function.
- 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/