Ayon menus not working in Resolve (Workfiles, Create...)

Hi there :slight_smile:
In resolve I’m trying to save a scene for the first time with Ayon, but the “Workfiles” window is empty and everything is greyed out (same goes for the “Create” window).
There is an error in the console when I open them, which I assume is the reason why it’s not working, but I can’t find a solution or point out what I did wrong.
Here is the error:

Traceback (most recent call last):
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\core_1.6.0+smks.0.1.2\ayon_core\tools\workfiles\widgets\window.py", line 326, in _on_show
    self.refresh()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\core_1.6.0+smks.0.1.2\ayon_core\tools\workfiles\widgets\window.py", line 305, in refresh
    self._controller.reset()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\core_1.6.0+smks.0.1.2\ayon_core\tools\workfiles\control.py", line 479, in reset
    current_file = self.get_current_workfile()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\core_1.6.0+smks.0.1.2\ayon_core\tools\workfiles\control.py", line 306, in get_current_workfile
    return self._workfiles_model.get_current_workfile()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\core_1.6.0+smks.0.1.2\ayon_core\tools\workfiles\models\workfiles.py", line 104, in get_current_workfile
    return self._host.get_current_workfile()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\resolve_0.4.1\ayon_resolve\api\pipeline.py", line 103, in get_current_workfile
    return current_file()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\resolve_0.4.1\ayon_resolve\api\workio.py", line 81, in current_file
    resolve_project = get_current_resolve_project()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\resolve_0.4.1\ayon_resolve\api\lib.py", line 163, in get_current_resolve_project
    project_manager = get_project_manager()
  File "C:\Users\raphael.bandet\AppData\Local\Ynput\AYON\addons\resolve_0.4.1\ayon_resolve\api\lib.py", line 140, in get_project_manager
    project_manager = bmdvr.GetProjectManager()
AttributeError: 'NoneType' object has no attribute 'GetProjectManager'

I tried with both Resolve 18.5 and 19 but same result.
ayon-resolve addon is on 0.4.1
Do you know about this error and how to fix it ?

Thanks for the help :pray:

Is this Resolve Studio or the free Resolve version?

Pretty sure external scripting support only exists in the paid Studio release.

Ah yes I forgot to mention I’m using the free version of Resolve. So this means Ayon will only work with the Resolve Studio version?

I believe if you have ayon-resolve version 0.5 or higher then it should work, looking at this PR.

That would be perfect, I’ll try that when I get back to it, thanks ! :slight_smile: