nuke: adding supporting plugin function

This commit is contained in:
Jakub Jezek 2021-10-12 16:45:29 +02:00
parent 8c045122f1
commit 50742bba5c
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -23,3 +23,19 @@ class PypeCreator(PypeCreatorMixin, avalon.nuke.pipeline.Creator):
self.log.error(msg + '\n\nPlease use other subset name!')
raise NameError("`{0}: {1}".format(__name__, msg))
return
def get_review_presets_config():
settings = get_current_project_settings()
review_profiles = (
settings["global"]
["publish"]
["ExtractReview"]
["profiles"]
)
outputs = {}
for profile in review_profiles:
outputs.update(profile.get("outputs", {}))
return [str(name) for name, _prop in outputs.items()]