I am making an addon that need to handle some code expression that the user is going to write.
At first, I was making a Panel with a text input but I saw that we can only make a single line text input.
So I just realized that there was already a text editor in Blender that could handle all the common operations when editing code.
I have few questions :
-
I was thinking about integrating my panel inside the text editor window but the
N
key to open the right panel doesn’t work because it’s inserting an
letter rather than calling the shortcut, is there a way to trigger it rather than clicking? -
When we create a file, it’s displaying the execute button when writing python scripts. If I want to execute my own files, is it possible to overwrite the behavior of that button? If it’s not possible, is it possible to add another button to this header (with a custom icon)? :
- Most of the live coding editors have the ability to execute snippets of code by selecting them and pressing
Ctrl+ENTER
to evaluate them. How complex is it to implement in Python?
Thanks