Post #3546: @roaoao

📋 Metadata

🏷️ Tags

popup-dialog intermediate unsolved

  • Overlay
  • Python Scripting

💬 Content

@roaoao
I have an issue with the unicode text .

here is my code :

py.context.preferences.addons[‘pie_menu_editor’].preferences.overlay.size = 15

bpy.ops.pme.overlay(text=‘Version module FR : à é è \u00e0 \u00e9 \u00e8 ’, alignment=‘BOTTOM_LEFT’, offset_y=70, offset_x=100, duration=8),

prefs().overlay.color = (1, 0.4, 0.06, 1)

when i write a text which is a help (for example a description of the function) for the users, it is displayed in the view port, every thing work as excepted only characters with accent are substitute with their unicode. Accented characters works in the pie menu but how can i achieve the same result for the displayed text ? One solution is to write directly with the unicode but i have a lot of subsitute to make.
I hope you could understand what i mean.
Baptiste


🔗 View on Blender Artists