Page 1 of 1

Create action with script?

Posted: Tue Jan 24, 2017 6:11 pm
by dkwroot
Is it possible to create new actions using a script?

Re: Create action with script?

Posted: Tue Jan 24, 2017 8:13 pm
by synthsin75
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.

Re: Create action with script?

Posted: Tue Jan 24, 2017 10:05 pm
by dkwroot
Thank you, moho.layer:ActivateAction(const char *name) works like a charm.

Re: Create action with script?

Posted: Tue Jan 24, 2017 10:40 pm
by synthsin75
Oh yeah, forgot it was a layer function.