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

Commit

Permalink
feature/OP-7692_Folder_Batch_publishing_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden Jennings committed Jan 17, 2024
1 parent 133fafe commit 6128d51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions openpype/hosts/batchpublisher/addon.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os

import click

from openpype.lib import get_openpype_execute_args
from openpype.lib.execute import run_detached_process
# from openpype.lib import get_openpype_execute_args
# from openpype.lib.execute import run_detached_process
from openpype.modules import OpenPypeModule, ITrayAction, IHostAddon


Expand Down Expand Up @@ -49,8 +48,9 @@ def _create_dialog(self):
import openpype.hosts.batchpublisher.widgets
importlib.reload(openpype.hosts.batchpublisher.widgets)

from openpype.hosts.batchpublisher.widgets import BatchPublisherWindow
self._dialog = openpype.hosts.batchpublisher.widgets.BatchPublisherWindow()
# from openpype.hosts.batchpublisher.widgets import BatchPublisherWindow
self._dialog = openpype.hosts.batchpublisher \
.widgets.BatchPublisherWindow()

def show_dialog(self):
"""Show dialog with connected modules.
Expand Down
5 changes: 2 additions & 3 deletions openpype/hosts/batchpublisher/deadline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@


import json
import getpass
import os
import requests

from openpype.pipeline import legacy_io
Expand All @@ -13,7 +15,6 @@
DEAFAULT_CONCURRENT_TASKS = 1



def payload_submit(
plugin,
plugin_data,
Expand Down Expand Up @@ -117,5 +118,3 @@ def payload_submit(
raise Exception(response.text)

return response.json()


5 changes: 3 additions & 2 deletions openpype/hosts/batchpublisher/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def publish_version(
if family_name in REVIEW_FAMILIES:
# inject colorspace data if we are generating a review
for rep in representations:
source_colorspace = publish_data.get("colorspace") or "scene_linear"
source_colorspace = publish_data.get("colorspace")
source_colorspace = source_colorspace or "scene_linear"
logger.debug(
"Setting colorspace '%s' to representation", source_colorspace
)
Expand Down Expand Up @@ -154,4 +155,4 @@ def publish_version(
with open(metadata_path, "w") as f:
json.dump(publish_job, f, indent=4, sort_keys=True)

return response
return response
4 changes: 1 addition & 3 deletions openpype/hosts/batchpublisher/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import re
import glob
import datetime
import getpass
import os
import requests

from openpype.lib import Logger
from openpype.pipeline import Anatomy
Expand Down Expand Up @@ -259,4 +257,4 @@ def solve_families(instance_data, preview=False):
if "review" not in families:
logger.debug('Adding "review" to families because of preview tag.')
families.append("review")
instance_data["families"] = families
instance_data["families"] = families

0 comments on commit 6128d51

Please sign in to comment.