mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
without ext option - work fine as abc
This commit is contained in:
parent
484c89ac4a
commit
be11211256
2 changed files with 6 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -26,9 +26,6 @@
|
|||
"Branch01",
|
||||
"Part01"
|
||||
]
|
||||
},
|
||||
"CreateModel": {
|
||||
"extension": "abc"
|
||||
}
|
||||
},
|
||||
"publish": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue