Feature Request:Data Folder
-
@Christoph-Hart -- but it would be a convenience and nice to have -
-
@Lindon I think it's one of the cases where there's not one single use case and then you'll end up nagging me with feature additions or changes to a system that I don't use myself so it gets broken regularly. Especially since the File API gives you full flexibility with a little more housekeeping that you have to do for yourself.
-
@Christoph-Hart said in Feature Request:Data Folder:
@Lindon I think it's one of the cases where there's not one single use case and then you'll end up nagging me with feature additions or changes to a system that I don't use myself so it gets broken regularly. Especially since the File API gives you full flexibility with a little more housekeeping that you have to do for yourself.
well yeh I get that, and in passing if you thing we will all stop nagging you about something for ever, then who are you and what did you do with Christoph?
But still I'd have thought it a simple (and all encompasing) requirement/feature/use case:
All files in ../DataFiles will be included in the plugin in exactly the same way as samplemaps...
-
@Lindon But what is the benefit over including it as script?
-
@Christoph-Hart In my case I have "theme" files. Each one is list of every component on my UI with various properties/values. Depending on which one the user selects that gets loaded and the values are applied to the components. I could include these in the script but since they are not doing anything logicy it would just be adding bulk - does this have any impact on performance?
-
@d-healey Parsing kilobytes of JSON data takes a few milliseconds so unless you let the user define every pixel on your interface, you should be fine.
-
@Christoph-Hart Ok you've convinced me, I'll just include them as scripts. :)
-
@Christoph-Hart said in Feature Request:Data Folder:
@Lindon But what is the benefit over including it as script?
simplicity only.
-
@Lindon said in Feature Request:Data Folder:
@Christoph-Hart - whats this?
.existsAsFile()
That's a JUCE/C++ function to check if a file exists. https://docs.juce.com/master/classFile.html#a2d79c296f148b00041aeeac0013716d9
The HISE script version is
File.isFile();
andFile.isDirectory()
-
@d-healey said in Feature Request:Data Folder:
@Lindon said in Feature Request:Data Folder:
@Christoph-Hart - whats this?
.existsAsFile()
That's a JUCE/C++ function to check if a file exists. https://docs.juce.com/master/classFile.html#a2d79c296f148b00041aeeac0013716d9
The HISE script version is
File.isFile();
andFile.isDirectory()
yeah thanks. those Hise commands I already know..