Checking for install path ?

For general discussion related FlowStone
Post Reply
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Checking for install path ?

Post by lalalandsynth »

Can I have the plugin check where it is installed ?
Say if someone does not use the default Steinberg/VStplugins folder but something else.
Can I have the plugin know where it is installed and get the folder name ?

There is the Folder primitive just not sure if it writes where I install the plugin when exporting or if it can read where it installed on any computer ?
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

It appears that the folder prim can only know where it has been exported rather then know where it resides if moved or installed into a different folder then the export folder . At least that is what it looks like.

I wonder if there is a way for the plugin to check where it is installed ?
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

What I need to do is have the plugin find a folder with envelope shapes regardless of the install path .
I could use the Sysfolders Prim and put the envelopes in the roaming folder but I am not sure if the Prim "gets" the folder on startup of the plugin as there is no "do it" trigger , so wondering if it only works within FS or also in an installed plugin? Or indeed if it finds the system folder specific to each user or just on my computer ?
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

After some testing it seems that the systems folder prim works .
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Checking for install path ?

Post by adamszabo »

check the Schematic File Path primitive. It will output the location where the .dll vst resides
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

Does that not just show me where the schematic itself is located rather then the vst itself ?
Does so in FS at least.
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

I think this is solved by using the System folder prim and then install presets and Envelope shapes into a folder at Appdata/roaming.
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Checking for install path ?

Post by adamszabo »

lalalandsynth wrote:Does that not just show me where the schematic itself is located rather then the vst itself ?
Does so in FS at least.


If you export it to vst, it will output the location of the vst dll files
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Checking for install path ?

Post by lalalandsynth »

Cool, trying it out.
Post Reply