diff --git a/openpype/hosts/fusion/addon.py b/openpype/hosts/fusion/addon.py index 777c38629a..6621f88056 100644 --- a/openpype/hosts/fusion/addon.py +++ b/openpype/hosts/fusion/addon.py @@ -5,7 +5,7 @@ FUSION_HOST_DIR = os.path.dirname(os.path.abspath(__file__)) FUSION_PROFILE_VERSION = 16 -# FUSION_PROFILE_VERSION variable is used by the pre-launch hooks. +# FUSION_PROFILE_VERSION variable is used by the pre-launch hooks. # Since Fusion v16, the profile folder became project-specific, # but then it was abandoned by BlackmagicDesign devs, and now, despite it is # already Fusion version 18, still FUSION16_PROFILE_DIR is used. diff --git a/openpype/hosts/fusion/hooks/pre_fusion_profile_hook.py b/openpype/hosts/fusion/hooks/pre_fusion_profile_hook.py index 4af67c1c0d..b91c699cc3 100644 --- a/openpype/hosts/fusion/hooks/pre_fusion_profile_hook.py +++ b/openpype/hosts/fusion/hooks/pre_fusion_profile_hook.py @@ -2,7 +2,7 @@ import os import shutil import platform from pathlib import Path -from openpype.lib import PreLaunchHook, ApplicationLaunchFailed +from openpype.lib import PreLaunchHook from openpype.hosts.fusion import FUSION_PROFILE_VERSION as VERSION @@ -11,7 +11,7 @@ class FusionCopyPrefsPrelaunch(PreLaunchHook): """ app_groups = ["fusion"] - + def get_fusion_profile_name(self) -> str: """usually set to 'Default', unless FUSION16_PROFILE is set""" return os.getenv(f"FUSION{VERSION}_PROFILE", "Default") diff --git a/openpype/hosts/fusion/hooks/pre_fusion_setup.py b/openpype/hosts/fusion/hooks/pre_fusion_setup.py index bce221d357..e62c2d7ab7 100644 --- a/openpype/hosts/fusion/hooks/pre_fusion_setup.py +++ b/openpype/hosts/fusion/hooks/pre_fusion_setup.py @@ -1,6 +1,4 @@ import os -import shutil -import platform from pathlib import Path from openpype.lib import PreLaunchHook, ApplicationLaunchFailed from openpype.hosts.fusion import FUSION_HOST_DIR