Filename pin in plugin (and relative paths)

Dear vvvv users, I have another plugin question…

Is there a way to create a ‘filename’ pin on a plugin?

What I basically would like to do is to feed my plugin with relative filepaths, just like I can do with filetexture etc. So a way to get the current path from within the plugin (without being forced to feed it through another pin) would be nice.

A workaround is easy to do, but not having to work around it would be even nicer ;-)

To create a pin with a file dialog see our docs here and here.

To get the working directory use:

System.Environment.CurrentDirectory

To get the directory of your assembly use:

typeof(YourPlugin).Assembly.Location

To get the directory of vvvv/bin/managed use:

typeof(VVVV.PluginInterfaces.TypeOfYourChoosing).Assembly.Location

Thanks a lot!