📋 Metadata
- Author: roaoao
- Date: 2020-10-31 07:57:41
- Type:
answer - Reply to: post_03664
- Replies (1): post_03673
💬 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