diff --git a/openpype/lib/avalon_context.py b/openpype/lib/avalon_context.py index 2a7c58c4ee..ac5f4555c4 100644 --- a/openpype/lib/avalon_context.py +++ b/openpype/lib/avalon_context.py @@ -756,11 +756,22 @@ class BuildWorkfile: host_name = avalon.api.registered_host().__name__.rsplit(".", 1)[-1] presets = get_project_settings(avalon.io.Session["AVALON_PROJECT"]) # Get presets for host - build_presets = ( - presets.get(host_name, {}) - .get("workfile_build") - .get("profiles") - ) + # for backward compatibility this has to have exception + # if the concept will be agreed then this needs to be + # refactored without exception + if "nuke" in host_name: + build_presets = ( + presets.get(host_name, {}) + .get("workfile_options") + .get("builder_profiles") + ) + else: + build_presets = ( + presets.get(host_name, {}) + .get("workfile_build") + .get("profiles") + ) + if not build_presets: return