I can’t seem to get the plugin to work in Affinity Photo V2.
I manually added it to the PS plugins using search folders ‘\Applications’ and plugin support folders '' and I can launch the plugin but I can’t activate it as I keep getting ‘Invalid OAuth state’ back from the Topaz labs website. The stand-alone Photo AI activates without issue.
It seems the Topaz instructions for installing the plugin are inadequate. All it says is to check “Allow unknown Plugins to be used”. But in order for that to work, the plugin would have to be installed in a certain place in Affinity Photos User data, namely ~/Library/Containers/com.seriflabs.affinityphoto2/Data/Library/Application\ Support/Plugins
but it’s not there so doesn’t show up.
But the Affinity Photo docs are a little more complete. It says:
To link to your plugin file manually:
From the Affinity Photo menu, select Settings (or Preferences).
Select the Photoshop Plugins tab.
Under the Plugin Search Folders box, click Add, then navigate to the parent folder that contains the .plugin file.
In this case, it would be “/Applications/Topaz Photo AI.app” or “/Applications/Topaz Photo AI.app/Contents”
Then Affinity says you have to allow access to supporting plugin files:
From the Photoshop Plugins tab, under the Plugin support folders box, click Authorize Global.
The folder dialog will default to root (“Macintosh HD”). You can click Authorize here and access to support files will be applied recursively, or you can specify a particular directory that contains the support files.
Press Close
After all that, the Plugin will show up in the Affinity dialog and you can check “Allow Unknown Plugins to be used”. Then, after restarting Affinity, the plugin will show up in the Affinity filters menu and you can try to use it. But when you do, the problem described by the OP will show up. It will open Topaz but as an unauthorized copy of the app. (If you already have Topaz open, it will open another instance of the app, which is really weird on the mac: you’re not supposed to be able to open an app twice – when you try to open an app that’s already open, the original app should come to the front and a new document should open in it.)
So the unauthorized app invoked by the plugin is in Demo mode, and if you try to Activate it (so you can save results), the OAUTH error described by the OP shows up in your browser.