trigger.base.actions_session
Attributes
Classes
dict() -> new empty dictionary |
Module Contents
- class ActionsSession(progress_listwidget=None, version_controller=None, *args, **kwargs)
Bases:
dictdict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- add_action(action_name=None, action_type=None, insert_index=None)
Adds an action to the session database Args:
action_name: (String) Nice name for the action action_type: (String) Type of the action. Must be one of the valid types
Returns:
- delete_action(action_name)
Deletes the action by name from the dictionary
- disable_action(action_name)
- duplicate_action(action_name)
Duplicates the given action
- edit_action(action_name, property, new_value)
Edits the property values Args:
action_name: (String) Action by name property: (String) Data Property new_value: (Multi) The new value. If its not match to the value data of the property, will throw error
Returns: True if success, None or False if not
- enable_action(action_name)
- export_session(file_path)
Exports the session to the given file path
- get_action(action_name)
Returns the action dictionary item by name
- get_action_type(action_name)
- get_all_actions()
Returns all available actions
- get_info(action_name)
- get_layout_ui(action_name, ctrl, layout)
- import_session(file_path, insert_index=None)
Imports the session from the file
- is_enabled(action_name)
- is_modified()
Checks if the current file is different than the saved file
- list_action_names()
Returns all available action names
- list_valid_actions()
Returns all available actions
- load_session(file_path)
Loads the session from the file
- move(action_name, new_index)
Moves the action to the given index nmb
- move_down(action_name)
Moves the action one index down
- move_up(action_name)
Moves the action one index up
- new_session()
Clears the data
- query_action(action_name, property)
- rename_action(action_name, new_name)
- reset_actions()
- run_action(action_name)
- run_all_actions(reset_scene=True, until=None)
runs all actions in the actions list
- run_save_action(action_name)
- save_session(file_path)
Saves the session to the given file path
- action_data_dict
Structure: { actions:[
{ “name”: “body_kinetics”, “type”: “kinematics”, “data”: {ACTION_DATA} }, { “name”: “Weights_Main_Body”, “type”: “weights”, “data”: {ACTION_DATA} }, { “name”: “Final_Cleanup”, “type”: “cleanup”, “data”: {ACTION_DATA} } { “name”: “Add_Extras”, “type”: “python”, “data”: {ACTION_DATA} }
]
}
- property session_path
- LOG