trigger.actions.node_presets ============================ .. py:module:: trigger.actions.node_presets .. autoapi-nested-parse:: Saves and Loads node presets from arbitrary locations Attributes ---------- .. autoapisummary:: trigger.actions.node_presets.ACTION_DATA trigger.actions.node_presets.log Classes ------- .. autoapisummary:: trigger.actions.node_presets.Node_presets Module Contents --------------- .. py:class:: Node_presets(**kwargs) Bases: :py:obj:`trigger.core.action.ActionCore` .. py:method:: action() Mandatory Method - Execute Action .. py:method:: collect_user_defined_attributes(node) :staticmethod: Returns the user attribute dictionary list for defined node [ { "name": "foot_roll", "type": "float", "value": 0.0 } ] .. py:method:: feed(action_data, *args, **kwargs) Mandatory Method - Feeds the instance with the action data stored in actions session .. py:method:: load_preset(node, source_folder) :staticmethod: loads the preset from a source folder. File name must match the node name .. py:method:: save_action(file_path=None, *args, **kwargs) Mandatory Method - Save Action .. py:method:: save_preset(node, target_folder) :staticmethod: saves the preset to a specific folder. The file will be saved with the node name .. py:method:: set_user_defined_attributes(node, data_list) :staticmethod: Sets the user attributes back from the json data .. py:method:: ui(ctrl, layout, handler, *args, **kwargs) Mandatory Method - UI setting definitions Args: ctrl: (model_ctrl) ctrl object instance of /ui/model_ctrl. Updates UI and Model layout: (QLayout) The layout object from the main ui. All setting widgets should be added to this layout handler: (actions_session) An instance of the actions_session. TRY NOT TO USE HANDLER UNLESS ABSOLUTELY NECESSARY *args: **kwargs: Returns: None .. py:attribute:: action_data .. py:data:: ACTION_DATA .. py:data:: log