Post #3672: ![](https://blenderartists.org/user_avatar/blenderartists.org/stefakapapy/48/592

📋 Metadata

🏷️ Tags

popup-dialog scripting intermediate solved

  • Popup Dialog Editor
  • Panel Group Editor
  • Python Scripting

💬 Content

Stefakapapy:

how to load a text file in the panel ?

Hi @Stefakapapy, sorry for lack of reply.
You can add a new Popup Dialog to the panel group and use this code in pupup dialog’s button (Custom tab) to load a text file:

f = open("/path/to/my_file.txt", "r"); [L.label(text=line) for i, line in enumerate(f)]; f.close()

Or just open the file in Blender’s text editor.


❤️ 3 likes


🔗 View on Blender Artists