More questions on preset discovery #308
-
I like preset discovery and I believe the functionality found here should be mandatory for any plug-in standard. I have it semi-working but the documentation is not great. The most useful information can be found in preset-discovery,h:
Deciphering what responsibilities are assigned to the host is a bit challenging. The word 'crawl' is not defined so either the plug-in or the host must look through the file system looking for preset files. Since I only have one plug-in that supports preset-discovery it is hard to tell if I, as the host, or it, as the plugin is doing the wrong thing. I call clap_preset_discovery_indexer.get_metadata() for the built-in presets (something like this):
when i == 0, I get called back for each preset but when i == 1 and the location points to a "\File" directory, get_metadata calls on_error and no presets are returned. Is the host support to traverse the file system to find presets in certain cases? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
If the URI is a file path that points to a directory (or a symlink to a directory) then the host should crawl it for presets, yes. If the plugin declared file types then it filters the results by those file types, and then calls |
Beta Was this translation helpful? Give feedback.
If the URI is a file path that points to a directory (or a symlink to a directory) then the host should crawl it for presets, yes. If the plugin declared file types then it filters the results by those file types, and then calls
get_metadata()
with URIs pointing to all matched files.