Help with setting default palette through scripts

hi, im currently trying to write a script that includes setting the pallet to the default one, but i cannot find any info on how to set the pallet to the default. right now im thinking i have to use this code:
local palette = Palette{ fromRescource=(defaultID) }
but i cant find any info on what the id is, and i cannot just use DB32 as i set the default to my own custom one. but if this isnt the correct way to set it as the default palette, could you tell me how?

1 Like

Hi @arlow,

Does app.command.LoadPalette { preset = "default" } work with what you’re trying to do?


@behreandtjeremy it does! thank you!

1 Like