@Milio
Here it is.
Select the settings node and execute it.
from maya import cmds
import re
def replacement_function(match_object):
"""
A function that receives an object matching a regular expression, performs calculations, and returns the resulting string after substitution.
"""
key_part = match_object.group(1)
value_str = match_object.group(2)
new_value = float(value_str) * 0.65
return f"{key_part}{new_value}"
def main():
for sel in cmds.ls(sl=True):
if not cmds.ls(f"{sel}.picker_datas"):
continue
source_string = cmds.getAttr(f"{sel}.picker_datas")
pattern = re.compile(r"('text_size':\s*)(\d+\.?\d*)")
modified_string = re.sub(pattern, replacement_function, source_string)
#
cmds.setAttr(f"{sel}.picker_datas", l=False)
cmds.setAttr(f"{sel}.picker_datas", modified_string, type="string")
cmds.setAttr(f"{sel}.picker_datas", l=True)
main()