Dev:Action System
From Synfig Studio :: Documentation
This page is a work-in-progress documentation of the action system. At the moment there are only some brief notes.
Types of actions
- Inherit from Super
- can only call other actions
- implement a prepare() method to create sub-actions
- Inherit from Undoable and CanvasSpecific
- implement perform() and undo()
- Get_Param_Vocab
- Get the parent param vocab "ParamVocab ret(Action::CanvasSpecific::get_param_vocab());"
- Then add parameters to it e.g. " ret.push_back(ParamDesc("new_value",Param::TYPE_VALUE).set_local_name(_("ValueBase")));"