diff --git a/client/ayon_tvpaint/api/pipeline.py b/client/ayon_tvpaint/api/pipeline.py index 5ec6355..ba2ea77 100644 --- a/client/ayon_tvpaint/api/pipeline.py +++ b/client/ayon_tvpaint/api/pipeline.py @@ -160,7 +160,11 @@ def work_root(self, session): return session["AYON_WORKDIR"] def get_current_workfile(self): - return execute_george("tv_GetProjectName") + # TVPaint returns a '\' character when no scene is currently opened + current_workfile = execute_george("tv_GetProjectName") + if current_workfile == '\\': + return None + return current_workfile def workfile_has_unsaved_changes(self): return None