without ext option - work fine as abc

This commit is contained in:
karimmozlia 2021-10-18 03:55:32 +02:00
parent 484c89ac4a
commit be11211256
2 changed files with 6 additions and 12 deletions

View file

@ -41,15 +41,12 @@ class ExtractModel(openpype.api.Extractor):
subset = instance.data["subset"]
staging_dir = self.staging_dir(instance)
# get extension form setting or from preset
extension = instance.context.data["project_settings"]["nuke"]["create"]["CreateModel"]["extension"]
if not extension :
extension = next((k[1] for k in self.write_geo_knobs
if k[0] == "file_type"), None)
if not extension:
raise RuntimeError(
"Bad config for extension in presets. "
"Talk to your supervisor or pipeline admin")
extension = next((k[1] for k in self.write_geo_knobs
if k[0] == "file_type"), None)
if not extension:
raise RuntimeError(
"Bad config for extension in presets. "
"Talk to your supervisor or pipeline admin")
# create file name and path
filename = subset + ".{}".format(extension)

View file

@ -26,9 +26,6 @@
"Branch01",
"Part01"
]
},
"CreateModel": {
"extension": "abc"
}
},
"publish": {