mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-2787 - fixed resolution order
This commit is contained in:
parent
376ddc4132
commit
8de1cbf732
2 changed files with 10 additions and 9 deletions
|
|
@ -66,20 +66,20 @@ def install():
|
||||||
log.info("Installing callbacks ... ")
|
log.info("Installing callbacks ... ")
|
||||||
register_event_callback("init", on_init)
|
register_event_callback("init", on_init)
|
||||||
|
|
||||||
# Callbacks below are not required for headless mode, the `init` however
|
if os.environ.get("HEADLESS_PUBLISH"):
|
||||||
# is important to load referenced Alembics correctly at rendertime.
|
# Maya launched on farm, lib.IS_HEADLESS might be triggered locally too
|
||||||
|
# target "farm" == rendering on farm, expects OPENPYPE_PUBLISH_DATA
|
||||||
|
# target "remote" == remote execution
|
||||||
|
print("Registering pyblish target: remote")
|
||||||
|
pyblish.api.register_target("remote")
|
||||||
|
return
|
||||||
|
|
||||||
if lib.IS_HEADLESS:
|
if lib.IS_HEADLESS:
|
||||||
log.info(("Running in headless mode, skipping Maya "
|
log.info(("Running in headless mode, skipping Maya "
|
||||||
"save/open/new callback installation.."))
|
"save/open/new callback installation.."))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if os.environ.get("HEADLESS_PUBLISH"):
|
|
||||||
# Maya launched on farm, lib.IS_HEADLESS might be triggered locally too
|
|
||||||
print("Registering pyblish target: remote")
|
|
||||||
pyblish.api.register_target("remote")
|
|
||||||
return
|
|
||||||
|
|
||||||
print("Registering pyblish target: local")
|
print("Registering pyblish target: local")
|
||||||
pyblish.api.register_target("local")
|
pyblish.api.register_target("local")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
try:
|
try:
|
||||||
from openpype.api import Logger
|
from openpype.api import Logger
|
||||||
import openpype.lib.remote_publish
|
import openpype.lib.remote_publish
|
||||||
|
import pyblish.api
|
||||||
except ImportError as exc:
|
except ImportError as exc:
|
||||||
# Ensure Deadline fails by output an error that contains "Fatal Error:"
|
# Ensure Deadline fails by output an error that contains "Fatal Error:"
|
||||||
raise ImportError("Fatal Error: %s" % exc)
|
raise ImportError("Fatal Error: %s" % exc)
|
||||||
|
|
@ -8,4 +9,4 @@ except ImportError as exc:
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Perform remote publish with thorough error checking
|
# Perform remote publish with thorough error checking
|
||||||
log = Logger.get_logger(__name__)
|
log = Logger.get_logger(__name__)
|
||||||
openpype.lib.remote_publish.publish(log)
|
openpype.lib.remote_publish.publish(log, raise_error=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue