View Single Post
Old 12-06-2020, 04:16 PM   #342
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,622
Default

Quote:
Originally Posted by en5ca View Post
Ok. Do you know if it's possible to parse ReaScript API Chunks reliably with native Lua functions?
Yes, but that wouldn't be enough, as the comment is stored as Base64-string. So to change it, you would need to encode the new string as Base64.
I have such a function in Ultraschall-API and also other functions to parse FXChains, so adding/setting/deleting the comment shouldn't be that hard.

Haven't checked yet, whether changing the statechunk immediately updates the shown comment in the fx-chain, but I will see.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is online now   Reply With Quote