From 484c89ac4a0682085c68f37f9e5b2263b36e78eb Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Mon, 18 Oct 2021 03:53:48 +0200 Subject: [PATCH] clean attr-test 01 - with ext option parameter --- openpype/hosts/nuke/plugins/load/load_model.py | 2 +- openpype/hosts/nuke/plugins/publish/extract_model.py | 2 +- openpype/settings/defaults/project_settings/nuke.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/nuke/plugins/load/load_model.py b/openpype/hosts/nuke/plugins/load/load_model.py index 7e11abbae3..c3312a8d31 100644 --- a/openpype/hosts/nuke/plugins/load/load_model.py +++ b/openpype/hosts/nuke/plugins/load/load_model.py @@ -46,7 +46,7 @@ class AlembicModelLoader(api.Loader): with anlib.maintained_selection(): model_node = nuke.createNode( "ReadGeo2", - "name {} file {} read_from_file True".format( + "name {} file {} ".format( object_name, file), inpanel=False ) diff --git a/openpype/hosts/nuke/plugins/publish/extract_model.py b/openpype/hosts/nuke/plugins/publish/extract_model.py index f050ec92bb..293156a4c5 100644 --- a/openpype/hosts/nuke/plugins/publish/extract_model.py +++ b/openpype/hosts/nuke/plugins/publish/extract_model.py @@ -42,7 +42,7 @@ class ExtractModel(openpype.api.Extractor): staging_dir = self.staging_dir(instance) # get extension form setting or from preset - extension = instance.context.data["modelFormat"] + 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) diff --git a/openpype/settings/defaults/project_settings/nuke.json b/openpype/settings/defaults/project_settings/nuke.json index 0509d65fc7..83ccd84755 100644 --- a/openpype/settings/defaults/project_settings/nuke.json +++ b/openpype/settings/defaults/project_settings/nuke.json @@ -28,7 +28,7 @@ ] }, "CreateModel": { - "extension": ".abc" + "extension": "abc" } }, "publish": {