trigger.actions.node_presets
Saves and Loads node presets from arbitrary locations
Attributes
Classes
Module Contents
- class Node_presets(**kwargs)
Bases:
trigger.core.action.ActionCore- action()
Mandatory Method - Execute Action
- static collect_user_defined_attributes(node)
Returns the user attribute dictionary list for defined node
- [
{ “name”: “foot_roll”, “type”: “float”, “value”: 0.0 }
]
- feed(action_data, *args, **kwargs)
Mandatory Method - Feeds the instance with the action data stored in actions session
- static load_preset(node, source_folder)
loads the preset from a source folder. File name must match the node name
- save_action(file_path=None, *args, **kwargs)
Mandatory Method - Save Action
- static save_preset(node, target_folder)
saves the preset to a specific folder. The file will be saved with the node name
- static set_user_defined_attributes(node, data_list)
Sets the user attributes back from the json data
- 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
- action_data
- ACTION_DATA
- log