Post #3672: : post_03673
🏷️ Tags
popup-dialog scripting intermediate solved
⚙️ Related PME Features
- 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