How can I reference a plugin from another plugin?

I’ve created a custom context menu Studio plugin and I’d like to be able to use it from another plugin but have no idea how.

It contains a script and some UI elements. It works fine if I have it embedded as part of my other plugin, but I’d like to make this available for others. I know require can be used with an asset id, but when I try with mine it throws an error about the asset not being of type “Model” so I’m not sure if this is the correct approach, or if this is even possible. My guess is that either I import the asset id or I call require on some path where the plugin gets installed.

Does anyone know how I can make this work?

1 Like

I’ve also discovered something called InsertService, but that throws up an error when I try to call a function in a module script in the plugin.

I’m beginning to think this isn’t possible…

1 Like