📋 Metadata

💬 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