changes in extract_review were changed back since it's nuke break change

This commit is contained in:
iLLiCiTiT 2019-10-16 13:52:40 +02:00
parent de4bc42ec7
commit d9780d8caa

View file

@ -20,7 +20,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
label = "Extract Review"
order = pyblish.api.ExtractorOrder + 0.02
families = ["review"]
hosts = ["nuke", "maya", "shell", "standalonepublisher"]
hosts = ["nuke", "maya", "shell"]
def process(self, instance):
# adding plugin attributes from presets
@ -37,15 +37,10 @@ class ExtractReview(pyblish.api.InstancePlugin):
# get representation and loop them
representations = instance.data["representations"]
# get specific profile if was defined
specific_profiles = instance.data.get("repreProfiles")
# filter out mov and img sequences
representations_new = representations[:]
for repre in representations:
# remove dot if extension has
repre_ext = repre['ext'].replace(".", "")
if repre_ext not in plugin_attrs["ext_filter"]:
if repre['ext'] in plugin_attrs["ext_filter"]:
tags = repre.get("tags", [])
self.log.info("Try repre: {}".format(repre))
@ -55,10 +50,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
for name, profile in output_profiles.items():
self.log.debug("Profile name: {}".format(name))
# filter profiles if were set specific profiles
if specific_profile and name not in specific_profiles:
continue
ext = profile.get("ext", None)
if not ext:
ext = "mov"