mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +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
|
||||
from pprint import pformat
|
||||
import attr
|
||||
import pyblish.api
|
||||
|
||||
|
|
@ -92,7 +91,6 @@ class CollectFusionRender(
|
|||
)
|
||||
|
||||
render_target = inst.data["creator_attributes"]["render_target"]
|
||||
self.log.debug("render_target: '{}'".format(render_target))
|
||||
|
||||
if render_target == "local":
|
||||
# for local renders
|
||||
|
|
@ -125,7 +123,6 @@ class CollectFusionRender(
|
|||
for instance in self._context:
|
||||
if "render.frames" in instance.data.get("families", []):
|
||||
self._update_for_frames(instance)
|
||||
self.log.debug(pformat(instance.data))
|
||||
|
||||
def get_expected_files(self, render_instance):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -23,21 +23,20 @@ class ValidateLocalFramesExistence(pyblish.api.InstancePlugin):
|
|||
if non_existing_frames is None:
|
||||
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:
|
||||
if not os.path.exists(file):
|
||||
cls.log.error(
|
||||
f"Missing file: {file}"
|
||||
)
|
||||
non_existing_frames.append(file)
|
||||
for file in expected_files:
|
||||
if not os.path.exists(file):
|
||||
cls.log.error(
|
||||
f"Missing file: {file}"
|
||||
)
|
||||
non_existing_frames.append(file)
|
||||
|
||||
if len(non_existing_frames) > 0:
|
||||
cls.log.error(f"Some of {tool.Name}'s files does not exist")
|
||||
return [tool]
|
||||
if len(non_existing_frames) > 0:
|
||||
cls.log.error(f"Some of {tool.Name}'s files does not exist")
|
||||
return [tool]
|
||||
|
||||
def process(self, instance):
|
||||
non_existing_frames = []
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import os
|
||||
import json
|
||||
import getpass
|
||||
from pprint import pformat
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -90,8 +89,6 @@ class FusionSubmitDeadline(
|
|||
attribute_values = self.get_attr_values_from_data(
|
||||
instance.data)
|
||||
|
||||
self.log.debug(pformat(attribute_values))
|
||||
|
||||
# add suspend_publish attributeValue to instance data
|
||||
instance.data["suspend_publish"] = attribute_values[
|
||||
"suspend_publish"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue