mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
pr comments
This commit is contained in:
parent
90f4e6b8bb
commit
fbee0a8b3c
3 changed files with 11 additions and 18 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import os
|
import os
|
||||||
from pprint import pformat
|
|
||||||
import attr
|
import attr
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
|
|
||||||
|
|
@ -92,7 +91,6 @@ class CollectFusionRender(
|
||||||
)
|
)
|
||||||
|
|
||||||
render_target = inst.data["creator_attributes"]["render_target"]
|
render_target = inst.data["creator_attributes"]["render_target"]
|
||||||
self.log.debug("render_target: '{}'".format(render_target))
|
|
||||||
|
|
||||||
if render_target == "local":
|
if render_target == "local":
|
||||||
# for local renders
|
# for local renders
|
||||||
|
|
@ -125,7 +123,6 @@ class CollectFusionRender(
|
||||||
for instance in self._context:
|
for instance in self._context:
|
||||||
if "render.frames" in instance.data.get("families", []):
|
if "render.frames" in instance.data.get("families", []):
|
||||||
self._update_for_frames(instance)
|
self._update_for_frames(instance)
|
||||||
self.log.debug(pformat(instance.data))
|
|
||||||
|
|
||||||
def get_expected_files(self, render_instance):
|
def get_expected_files(self, render_instance):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -23,21 +23,20 @@ class ValidateLocalFramesExistence(pyblish.api.InstancePlugin):
|
||||||
if non_existing_frames is None:
|
if non_existing_frames is None:
|
||||||
non_existing_frames = []
|
non_existing_frames = []
|
||||||
|
|
||||||
if "render.frames" in instance.data.get("families", []):
|
tool = instance.data["toolSaver"]
|
||||||
tool = instance.data["toolSaver"]
|
|
||||||
|
|
||||||
expected_files = instance.data["expectedFiles"]
|
expected_files = instance.data["expectedFiles"]
|
||||||
|
|
||||||
for file in expected_files:
|
for file in expected_files:
|
||||||
if not os.path.exists(file):
|
if not os.path.exists(file):
|
||||||
cls.log.error(
|
cls.log.error(
|
||||||
f"Missing file: {file}"
|
f"Missing file: {file}"
|
||||||
)
|
)
|
||||||
non_existing_frames.append(file)
|
non_existing_frames.append(file)
|
||||||
|
|
||||||
if len(non_existing_frames) > 0:
|
if len(non_existing_frames) > 0:
|
||||||
cls.log.error(f"Some of {tool.Name}'s files does not exist")
|
cls.log.error(f"Some of {tool.Name}'s files does not exist")
|
||||||
return [tool]
|
return [tool]
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
non_existing_frames = []
|
non_existing_frames = []
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import getpass
|
import getpass
|
||||||
from pprint import pformat
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
@ -90,8 +89,6 @@ class FusionSubmitDeadline(
|
||||||
attribute_values = self.get_attr_values_from_data(
|
attribute_values = self.get_attr_values_from_data(
|
||||||
instance.data)
|
instance.data)
|
||||||
|
|
||||||
self.log.debug(pformat(attribute_values))
|
|
||||||
|
|
||||||
# add suspend_publish attributeValue to instance data
|
# add suspend_publish attributeValue to instance data
|
||||||
instance.data["suspend_publish"] = attribute_values[
|
instance.data["suspend_publish"] = attribute_values[
|
||||||
"suspend_publish"]
|
"suspend_publish"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue