Confused about Exporting/Installing Expansions
-
@bendurso What are you passing for the sample directory?
-
@d-healey This:
/Volumes/Ben/RaizesJust an empty folder.
-
@bendurso But how are you passing it to the function?
-
@d-healey Oh, first I store the location in a json.
Then I import the json and add the location in the inline function
inline function InstallPackage() { local SampleFile = FileSystem.getFolder(FileSystem.AppData).getChildFile("sample_folder.json"); local SampleObject = SampleFile.loadAsObject(); local DirectoryName = SampleObject.SampleFolder; Console.print(DirectoryName); expHandler.installExpansionFromPackage(selectedInstrumentFile, DirectoryName); }
-
@bendurso I don't quite follow what you're doing.
You should ask the user where they want to install the samples, then pass that file object to the installExpansion function.
-
@d-healey I'm actually using this method, to store the location for future instruments. This way the user does not have to choose the location of the samples each time.
The error could be related to this? The output of the location looks the same..
-
@bendurso You need to pass the file object to the function - not the path.
-
@d-healey Oh, hehe, thanks! I was converting the result to a string, which was causing it to fail. Now there's no error.
However, I think there’s an issue with exporting the expansion since it’s not being installed properly.
First, I export "Project as Full Expansion" to generate the .hxi file (which should include expansion images, audio files, etc.). Then, I export using "Package Sample Monolith", selecting the expansion and the previously exported .hxi file.
Is this the correct method? The resulting .hr1 is not installing the expansion. No error in the console now.
-
@bendurso said in Confused about Exporting/Installing Expansions:
First, I export "Project as Full Expansion
You are not using full expansions, so don't do this.
Follow the documentation
-
@d-healey Ooh, I had read that part but since I had not found that section in Hise I omitted it. I finally found it and now it works fine! Thank you :)