Creating a custom preset save button
-
@Tangerine_Sounds If this is copied from your script it could be a typo. try "FileSystem" instead of "Filesystem".
FileSystem.browse(File
system.getFolder(File
system.UserPresets), true, "*.preset", function(f)
-
@Chazrox whoops... that was it. Thanks
-
@Tangerine_Sounds Yessuh!
-
Any ideas why HISE keeps crashing when I try to save a Preset?
I get this message in XCode: JUCE Assertion failure in UserPresetHandler.cpp:689
I can save presets in the preset browser but it crashes when I use the Custom Save button.
-
@Tangerine_Sounds said in Creating a custom preset save button:
I get this message in XCode: JUCE Assertion failure in UserPresetHandler.cpp:689
That error is in the
postPresetSave
function. What are you doing in that function? -
@d-healey I'm not using the postPresetSave function. I'm just using the same code as in your video.
I'll try it in a new HISE project and send a snippet
-
Created a new project but I'm still getting the same crash and error as before. I'm on a Mac if that makes any difference.
HiseSnippet 1636.3ocsXssaSbDFd1jr.6RoTj5M8tEe0ZTjiMgbhnVbbRbIhjfab.ZETgFu6r1iX8LVyNaNHHRz2.dD5qPun20K3onOG8lpdI8e1Y8dvwoPiZWEkn4+32+27OmRGA2iDEwEHC6COcDAY7YlcOkIGr4.Lkg1YKjwWYdHIR5zQPhHRmt3iHNshkRNC05zQ3nHhOxvX1uUYtg0bnju+3AsvgXlGIWDB8TN0irKcHUlKsSyGQCCai8IGRGVv560bGONaSdHOFf1rl0QivduB2mrOVY1LlnGhiFfLtiYuFd0IK1yCi6gWir5pK06dqtxZXRC+FqrzxqsT805s7RqrrGx3Ja6SkbQWIVRhPFy0h6eZ2A7iY5D7TZDsWHQMnApKjYs317PeUIpjh1b.MzuyXNKBAQoSNCNqlA+Ry8n9zL44L4WjnvI2ihDnwLkg2rkfWihvqdA3MEHYT.RyogzsL65Inij4ZT345l6vjDQ.FlmJBEssnYdmo4lbvBlr1P7qHsEvfLObWtd84cfeUccaaaAouiWrP.1paT.gKrfyShHhwcNODy7CIBaaXhE5mhGMv4qc1l0mxH07DDnpUVqMN0VWUrACqAh5vijahCC6A8AtAwLOIkybGkXdaZHop8qcrcrrJg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uAsvhhJZiOhq1sTcK5LTjChhpK4VbXXGrbvX8QkHozZcGfG8Is3BfsJoe+3gZpU41hIhzielpS4.nohCJdNH2wodsEm3a9+kxAw+XRN1kFI2.NfIqNSyv7S6OYdoQ1A7i6f88gt8OU+xn6V7XlupRetVwdbQ5LzjZx6JmTyXd9bZsOCdaz4tFO7.BtebHVV9UEp2dkpfNwyxTWWGltjmV7sY+m8TiOUHdKyNTo2foiwYlBFgSK9+.ioOP6FlaGDP7j4.bNy1e++OuFCc.OVsY5dX35XvdolvhjtvFYdDH6LFITcJNrCsx0jw0UiULPWByOYvGfuTkMTiMRU1XrRzPrmf+RO8ozpm.dsDI.lXIOW1xbO0XmxGOqOkBdQ5K87JGpy43curNt3k0w6cYcboKqiKeYcbkKqiq9wcT8OLXiXIendYCBsWmsSN1yvXal5xLIcqn+F8iiJVC
-
It's not crashing here, which commit of HISE are you using? Is it crashing in HISE or just the compiled project?
-
@Tangerine_Sounds Snippet works here.
-
@d-healey said in Creating a custom preset save button:
It's not crashing here, which commit of HISE are you using? Is it crashing in HISE or just the compiled project?
I'm using the latest Develop Branch. It's crashing HISE completely so I have to rebuild it in XCode
-
@Tangerine_Sounds said in Creating a custom preset save button:
It's crashing HISE completely so I have to rebuild it in XCode
The snippet you shared above is crashing in a fresh project?
-
@d-healey yes it is
-
@Tangerine_Sounds Can you test on another system?
-
@d-healey will try my old Mac mini tomorrow
-
@d-healey I’m still having the same issue on my Mac mini.
It’s not a huge issue. I can leave the button in my project and just not use it during development and testing. I can still save presets in the browser at least
-
@Tangerine_Sounds Can you make a video? I want to see it in action. @Chazrox Were you testing on Windows or Mac?
-
@d-healey Mac / Sequoia 15.2
git hash: 22fc80083350aa3daa41e39ef6fc5090db505056
-
-
@Chazrox I think that's left over from his main project - the reason it doesn't give an error is because there is no component called "btnPreset" in the snippet.
-
@d-healey said in Creating a custom preset save button:
Can you make a video? I want to see it in action.