Plugins are installed per-document?

@stevekwak I take it plugins are “installed” (installed once, I realize, perhaps I should say “activated”) in each open document (judging by the fact that the uninstall/install messages on reload are replicated with as many open documents as I have), so any plugin globals are always per-document?

Plugins are installed at the application level. If you “uninstall” a plugin, it gets deleted from the plugin location (/Adobe XD/plugins)

I understand that, but we get as many uninstallation/installation messages as open documents, so I’m wondering if plugins are “activated” per-document.

Hmm. shouldn’t be the case. What uninstallation/installation message are you talking about?

I have 3 plugins under development. I have 3 documents open. When I reload plugins during dev, I get 3 unloading/loading messages per plugin. If I have 2 documents open, I get 2 each. Etc. Here’s the console log (cleared before reloading) with 3 docs open and 3 plugins.

Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca
Unloading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/02ec2f87
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/6440ed65
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca
Loading plugin /Users/cpr/Library/Application Support/Adobe/Adobe XD (Prerelease)/develop/fc2070ca

Plugins are installed in a single location but each project you open has it’s own sandboxed instances. The global properties you have in one document are unique for that document.