This project has moved and is read-only. For the latest updates, please go here.

get plugin directory

Sep 17, 2009 at 9:59 PM

i cant found where i can take plugin directory, i need it for reading config file for my plugin. if is plugin loaded and when i use io.file i found directory for the host.

thank you for answer 

Sep 18, 2009 at 8:00 AM

I assume you are using the VST.NET plugin framework.

Call GetInstance<IVstHostShell> on the IVstHost reference that was passed to the plugin when Open was called.

On this interface there is a BaseDirectory property. That should give you the plugins root (or base) directory.

Hope it helps,
Marc

Sep 18, 2009 at 3:57 PM

thank you veru much, it work...