diff --git a/openpype/hosts/fusion/api/lib.py b/openpype/hosts/fusion/api/lib.py index f175d3a1d3..709d3cbdc6 100644 --- a/openpype/hosts/fusion/api/lib.py +++ b/openpype/hosts/fusion/api/lib.py @@ -302,7 +302,7 @@ def get_frame_path(path): return filename, padding, ext -def get_fusion(): +def get_fusion_module(): """Get current Fusion instance""" fusion = getattr(sys.modules["__main__"], "fusion", None) return fusion @@ -310,7 +310,7 @@ def get_fusion(): def get_current_comp(): """Get current comp in this session""" - fusion = get_fusion() + fusion = get_fusion_module() if fusion: comp = fusion.CurrentComp return comp diff --git a/openpype/hosts/fusion/api/workio.py b/openpype/hosts/fusion/api/workio.py index 8012d600da..f51c4fa9c1 100644 --- a/openpype/hosts/fusion/api/workio.py +++ b/openpype/hosts/fusion/api/workio.py @@ -2,7 +2,7 @@ import sys import os -from .lib import get_fusion, get_current_comp, get_comp_filename +from .lib import get_fusion_module, get_current_comp, get_comp_filename def file_extensions(): @@ -20,7 +20,7 @@ def save_file(filepath): def open_file(filepath): - fusion = get_fusion() + fusion = get_fusion_module() return fusion.LoadComp(filepath)