mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
update create_write, publihs validate collection wip
This commit is contained in:
parent
930fb37b1b
commit
a99669b972
3 changed files with 24 additions and 22 deletions
|
|
@ -14,7 +14,7 @@ class NukeRenderLocal(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.ExtractorOrder
|
||||
label = "Render Local"
|
||||
hosts = ["nuke"]
|
||||
families = ["render.local"]
|
||||
families = ["render.local", "prerender.local", "still.local"]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ class RepairCollectionAction(pyblish.api.Action):
|
|||
files_remove = [os.path.join(context[0].data["outputDir"], f)
|
||||
for f in context[0].data["files"]]
|
||||
for f in files_remove:
|
||||
os.remove(f)
|
||||
self.log.debug("removing file: {}".format(f))
|
||||
context[0][0]["render"].setValue(True)
|
||||
self.log.info("Rendering toggled ON")
|
||||
|
|
@ -37,9 +38,12 @@ class ValidateCollection(pyblish.api.InstancePlugin):
|
|||
frame_length = instance.data["lastFrame"] \
|
||||
- instance.data["firstFrame"] + 1
|
||||
|
||||
assert len(collections) == 1, self.log.info("There are multiple collections in the folder")
|
||||
if frame_length is not 1:
|
||||
assert len(collections) == 1, self.log.info(
|
||||
"There are multiple collections in the folder")
|
||||
assert collections[0].is_contiguous(), self.log.info("Some frames appear to be missing")
|
||||
|
||||
assert collections[0].is_contiguous(), self.log.info("Some frames appear to be missing")
|
||||
assert remainder is not None, self.log.info("There are some wrong files in folder")
|
||||
|
||||
self.log.info('frame_length: {}'.format(frame_length))
|
||||
self.log.info('len(list(instance.data["files"])): {}'.format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue