save preset
-
Engine.saveUserPreset(value);
hello, small problem with this line. when I put it in my button reminder to save a preset, it creates a new preset for me. how can I save my new preset on top of the one currently loaded?
-
Engine.saveUserPreset(Engine.getCurrentUserPresetName());
I just tried this and against all odds, it works. it just asks me if I want to overwrite the current preset and it works ;)
-
-
@d-healey I admit I tried without thinking too much lol
-
FileSystem.getFolder(FileSystem.AppData).getChildFile("User Presets/Bank/category").show();
as long as you are there dear @d-healey This line allows me to open the preset folder. but I would like it to go directly in the preset folder and not in the before folder. I don't know if you understand ;)
-
FileSystem.getFolder(FileSystem.AppData).getChildFile("User Presets").show();
-
@d-healey said in save preset:
FileSystem.getFolder(FileSystem.AppData).getChildFile("User Presets").show();
yes that's what I did but it doesn't open the file. you must then open manually once the window is displayed
-
@yall You mean you want to open a .preset file? In what application?
-
@d-healey
no I just want that if I click on my button, it opens the preset folder (the preset folder already open). -
@yall said in save preset:
opens the preset folder
That's what the code I posted does, it opens the User Presets folder. I think there is something lost in communication here as I don't understand what you want.
-
@d-healey yes the traducino is not great ;) in fact the line that I posted to you is similar to yours. it SHOWS the preset folder. then you have to click manually to OPEN the preset folder. What I would like is that if I click on the button, it directly opens the preset folder (and I see my list of presets without needing to manually open the folder)
-
@yall said in save preset:
it SHOWS the preset folder.
@yall said in save preset:
then you have to click manually to OPEN the preset folder
@yall said in save preset:
What I would like is that if I click on the button, it directly opens the preset folder
I'm still not clearer. Are you saying you want it to open a specific bank/category sub folder within the presets folder?
-
@d-healey when you manually go to the final preset folder. you see your list 1.preset, 2.preset 3.preset. These files are in the category folder. the command line does not open the category folder. it opens the windows window where you can see the category folder. then you manually click on the category folder to access your presets. What I want is for this line to open the entire category folder
-
@yall Your original code will do that. Does your
app data/user presets
folder contain the bank and category folders? -
@d-healey by default it has users preset / bank / category.
precisely even my code does not open the category folder. he opens the bank folder and I see the category folder. you have to open the category folder manually -
@yall In your App Data folder on your computer (not your project folder). Do you have a folder called "User Presets", and in that folder do you have a folder called "Bank" and in that folder do you have a folder called "category" (lower case)?
-
@d-healey oui
-
@yall Can you show me a screenshot or video of what you see?
-
@d-healey https://ibb.co/qB6vp37
I can see the category folder.FileSystem.getFolder(FileSystem.AppData).getChildFile("User Presets/Bank/category/").show();
this line opens the bank folder and therefore shows the category folder. what I would like would be / userspreset/bank/category / OPEN FOLDER ^^
-
@yall what is the full path? I only see part of it in your image