I am currently trying to improve the renaming functionality. I have very long preset names and would therefore like to avoid having to enter the whole string again and again. It would be best to always enter the preset name in the rename window. If a change in the name is necessary, you can click on the name field, change the string, and then when you click out it is saved.
My previous attempts in python have unfortunately failed. If I try to pass the string during a recall I get an error. For example, doing this while recall will not work:
par.owner.par.Renamepreset = self.CurrentPreset[0]
Does anyone have any suggestions on how I can best implement this?
Here is the rename function from the PresetExt:
def Renamepreset(self, par, val, prev):
name = str(par).replace(' ', '')
if name != '':
self.CurrentPreset[0] = name
self.SetRecallList()
par.owner.par.Renamepreset = ''
Thank you