Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
added pyside
Browse files Browse the repository at this point in the history
  • Loading branch information
seifibrahim32 committed Mar 25, 2024
1 parent 3dd2705 commit 61c8ef9
Show file tree
Hide file tree
Showing 1,001 changed files with 3,397 additions and 206 deletions.
10 changes: 9 additions & 1 deletion openpype/hosts/equalizer/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ def add_implementation_envs(self, env, _app):
# and PYTHON_CUSTOM_SCRIPTS_3DE4 as a colon separated list of
# directories to look for additional python scripts.
# (Windows: list is separated by semicolons).
# Ad

startup_path = os.path.join(EQUALIZER_HOST_DIR, "startup")
if "PYTHON_CUSTOM_SCRIPTS_3DE4" in env:
startup_path = os.path.join(
env["PYTHON_CUSTOM_SCRIPTS_3DE4"],
startup_path)
python_path = env["PYTHONPATH"]

python_path_parts = []
if python_path:
python_path_parts = python_path.split(os.pathsep)
vendor_path = os.path.join(EQUALIZER_HOST_DIR, "vendor")

python_path_parts.insert(0, vendor_path)
env["PYTHONPATH"] = os.pathsep.join(python_path_parts)

env["PYTHON_CUSTOM_SCRIPTS_3DE4"] = startup_path
env["AYON_TDE4_HEARTBEAT_INTERVAL"] = str(self.heartbeat)
Expand Down
9 changes: 3 additions & 6 deletions openpype/hosts/equalizer/api/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def get_workfile_extensions(self):
def save_workfile(self, filepath=None):
result = tde4.saveProject(filepath)
if not bool(result):
raise RuntimeError("Failed to save workfile %s."%filepath)
raise RuntimeError("Failed to save workfile %s." % filepath)

return filepath

def open_workfile(self, filepath):
result = tde4.loadProject(filepath)
if not bool(result):
raise RuntimeError("Failed to open workfile %s."%filepath)
raise RuntimeError("Failed to open workfile %s." % filepath)

return filepath

Expand All @@ -80,7 +80,6 @@ def get_current_workfile(self):

return current_filepath


def get_overscan(self):
context = self.get_context_data()
if "overscan" in context:
Expand Down Expand Up @@ -176,7 +175,7 @@ def update_context_data(self, data, changes):
tde4.setProjectNotes(
re.sub(
CONTEXT_REGEX,
"AYON_CONTEXT::%s::AYON_CONTEXT_END"%update_str,
"AYON_CONTEXT::%s::AYON_CONTEXT_END" % update_str,
tde4.getProjectNotes()
)
)
Expand All @@ -198,7 +197,6 @@ def install(self):
# tde4.setTimerCallbackFunction(
# "EqualizerHost._timer", int(heartbeat_interval))


def _set_project(self):
workdir = legacy_io.Session["AVALON_WORKDIR"]
if os.path.exists(workdir):
Expand All @@ -211,7 +209,6 @@ def _set_project(self):
projects.sort()
tde4.loadProject(os.path.join(workdir, projects[-1]))


@staticmethod
def _timer():
QtWidgets.QApplication.instance().processEvents(
Expand Down
196 changes: 0 additions & 196 deletions openpype/hosts/equalizer/hooks/pre_pyside2_install.py

This file was deleted.

Loading

0 comments on commit 61c8ef9

Please sign in to comment.