Пример #1
0
if sim_batch.sts.WITH_GUI == 1:
    """   force reload UI  START   """
    import ui.ui_settings as simbatch_ui_settings
    reload(simbatch_ui_settings)
    import ui.ui_projects as simbatch_ui_projects
    reload(simbatch_ui_projects)
    import ui.ui_schemas as simbatch_ui_schemas
    reload(simbatch_ui_schemas)
    import ui.ui_schemas_form as simbatch_ui_schemas_form
    reload(simbatch_ui_schemas_form)
    import ui.ui_tasks as simbatch_ui_tasks
    reload(simbatch_ui_tasks)
    import ui.ui_tasks_form as simbatch_ui_tasks_form
    reload(simbatch_ui_tasks_form)
    import ui.ui_tasks as simbatch_ui_tasks
    reload(simbatch_ui_tasks)
    import ui.ui_queue as simbatch_ui_queue
    reload(simbatch_ui_queue)
    import ui.ui_definitions as simbatch_ui_definitions
    reload(simbatch_ui_definitions)
    import server.server as simbatch_server
    reload(simbatch_server)
    import ui.ui_nodes as simbatch_nodes
    reload(simbatch_nodes)
    reload(simbatch_ui)
    """   force reload UI END   """
    main_window = simbatch_ui.MainWindow(sim_batch)
    main_window.show()
    main_window.post_run(loading_data_state)
Пример #2
0
from PySide.QtGui import *

import core.core as core
import ui.mainw as ui
import server.server as simbatch_server

app = QApplication([])

#sim_batch = core.SimBatch("Stand-alone")

simbatch = core.SimBatch("Maya", ini_file="config.ini")
server = simbatch_server.SimBatchServer(simbatch, force_local=True)
loading_data_state = simbatch.load_data()

if simbatch.sts.WITH_GUI == 1:
    main_window = ui.MainWindow(simbatch, server)
    main_window.show()
    main_window.post_run(loading_data_state)

app.exec_()
Пример #3
0
#
##
###
simbatch_instalation_dir = "S:/simbatch/"
simbatch_config_ini = "S:/simbatch/config.ini"
###
##
#

import hou
import sys

if not simbatch_instalation_dir in sys.path:
    sys.path.append(simbatch_instalation_dir)

import core.core as simbatch_core
import server.server as simbatch_server
import ui.mainw as simbatch_ui

from PySide2 import QtCore, QtUiTools, QtWidgets

simbatch = simbatch_core.SimBatch("Houdini", ini_file=simbatch_config_ini)
loading_data_state = simbatch.load_data()
simbatch_server = simbatch_server.SimBatchServer(simbatch, framework_mode=True)

if simbatch.sts.with_gui == 1:
    simbatch_window = simbatch_ui.MainWindow(simbatch_server)
    simbatch_window.setParent(hou.ui.mainQtWindow(), QtCore.Qt.Window)
    simbatch_window.show()
    simbatch_window.post_run(loading_data_state)
Пример #4
0
import sys, errno

try:
    from PySide.QtGui import *
except ImportError:
    print(
        "\n\n  PySide import ERROR!\n  Please install PySide or PySide2\n  pip install -U PySide"
    )
    sys.exit(errno.EACCES)

import core.core as core
import ui.mainw as ui
import server.server as simbatch_server

app = QApplication([])

simbatch = core.SimBatch(
    "Stand-alone"
)  # for custom startup vals add optional argument: ini_file="your_config.json"
loading_data_state = simbatch.load_data()
server = simbatch_server.SimBatchServer(simbatch, framework_mode=True)

if simbatch.sts.with_gui == 1:
    main_window = ui.MainWindow(server)
    main_window.show()
    main_window.post_run(loading_data_state)

app.exec_()