trigger.ui.main

Main UI for trigger

Attributes

WINDOW_NAME

db

log

qss

Classes

MainUI

Functions

launch([force, disable_version_control])

Launch the Trigger UI

Module Contents

class MainUI(disable_version_control=False)

Bases: trigger.ui.Qt.QtWidgets.QMainWindow

action_settings_menu()

Builds the action settings depending on action type

actions_rc()
add_actions_menu()
block_all_signals(state)

Blocks and Unblocks all signals for defined widgets inside function

build_bars_ui()
build_guides_ui()
build_rigging_ui()
build_tabs()
build_test_guides()
build_vcs_ui()

Build the Version Control System UI

clearLayout(layout)
closeEvent(event)
delete_action()
draw_extra_property(property_dict, parent_form_layout, root_jnt)
export_guides()
force_update()
get_version()

Return trigger version.

import_guides()
import_trigger(file_path=None)
increment_trigger()
keyPressEvent(e)
keyReleaseEvent(e)
static list_to_text(list_item)
move_action_down()
move_action_up()
new_trigger()
on_action_duplicate()
on_action_info()
on_action_rename()
on_action_toggle()
on_build_and_publish()

Publish the rig. This will work only if there is an active version control system.

on_build_rig()
on_create_guide(limb_name, **kwargs)
on_guide_change(currentItem, previousItem)
static on_makeup()
static on_mocap_mapper()
static on_rom_randomizer()
on_run_action()
on_run_action_until()
open_trigger(file_path=None, force=False)
populate_actions()
populate_guides()
populate_properties()
populate_recents()

Clears and reloads the recent sessions action menu item

progressBar()
refresh()
save_as_trigger()
save_trigger()
static text_to_list(text_item)
update_properties(property, value)
update_title()
vcs_save_session(path)

Creates and saves a new session using the path coming from version control.

This skips validations or error messages and just saves the session.

iconsPath
launch(force=False, disable_version_control=False)

Launch the Trigger UI

WINDOW_NAME
db
log
qss = Multiline-String
Show Value
"""
QPushButton
{
    color: #b1b1b1;
    background-color: #404040;
    border-width: 1px;
    border-color: #1e1e1e;
    border-style: solid;
    padding: 5px;
    font-size: 12px;
}

QPushButton:hover
{
    background-color: #505050;
    border: 1px solid #ff8d1c;
}

QPushButton:disabled {
  background-color: #303030;
  border: 1px solid #404040;
  color: #505050;
  padding: 5px;
  font-size: 12px;
}

QPushButton:pressed {
  background-color: #ff8d1c;
  border: 1px solid #ff8d1c;
}

QPushButton[override = "0"]{
    border-color: #1e1e1e;
}

QPushButton[override = "1"]{
    border-color: green;
}

QPushButton[menuButton=true] {
  min-width: 120;
  min-height: 45;
}
"""