Occasionally i’ll write a few lines of basic code which i’ll run in the text editor, however, it would be handy to be able to create a shortcut to run it from the 3dview instead (or essentially another window that isn’t the text editor)
What is the fastest (easiest?) way to create a shortcut for this?
Would it need to be an addon?
If a simple script was (in theory of course i realise this wouldn’t be an actually useful thing to activate with a shortcut key)…
And then that was it, obviously the system console window would have to be open to see the result in this case but is there an easy way to trigger with a shortcut?
Also could it be assigned a shortcut from inside the text scripting window or would it need to show up in the user preferences > input before you could assign a key to it? If so how would you go about doing that?