Thats right. This was personal preference, i mean. The old intellisense takes less space to display results and doesnt cut words. This trades into less scrolling and more readable output. You can make a backup of your current intellisense in case u want it back.
example path for blender intellisense:
D:\Blender Foundation\2.62\scripts\modules\console\intellisense.py -> intellisense.bak
i think i’ve found a bug, when i press enter nothing happend(don’t create a new line), i have to press the numpad enter. maybe a problem with key assignement?
I’m on ubuntu with a french keybord when does it help.
Im sorry, but this script is a first test to implement this functionality. Its very experimental yet.
It assigns return to a new operator of my own that sends lines to the console. If something fails returns doesnt work.
Ill try to make a more stable version.
Hi Mackraken,
I’ve testet the latest release. It works very good. Unfortunately the bge module does still not work.
I don’t know why… It would be really great if you can add support for the bge module too.
I have noticed, that the bge module can also not be imported from the console. Maybe it is because the bge module runs only when the game engine is started?
Im afraid i cannot find the bge module anywhere.
If it only exists at runtime is not going to be posible.
If you know anyone who knows how to import the bge module into the console pls let me know.
In the meantime we can cheat like this.
Create a new text file “mybge.py” into “D:\Blender Foundation\2.62\scripts\modules”
Here you can write placeholder classes as the bge has, for example:
mybge.py
class logic():
def getCurrentController():
pass
if __name__ == "__main__":
main()
Then we can start writing our bge script like:
import mybge as bge #import bge
logic = bge.logic()
cont = logic.getCurrentController()
and we can make use of intellisense using the fake mybge module.
I dont have time to fully write a fake bge module but this can be provisional solution.
If anyone can throw some light here would be great.
Thanks
Hi, Mccracken, I tested it in 269, it works(not bge module, but all the other ones do) but it overrides the enter key by some reason, when I hit “enter” to go to the next row it doesent work. Also, the thing with the old API(2.57), should be updated. Are you still active in coding? I didnt see new things from you for a long time, hope you are well. Can you please update this one? Also, whats up with the library script(it also doesent work for a long time)? Do you plan something on this?
Yes Enter is overriden because the script have to push the line to the console. Its true that if something goes wrong on the key assigment, it doesnt work which is not acceptable. This may be an api change. I will try to have a look.
Ive received some donations for matlib im ill be able to release a new update soon which will include
-multiple libraries. Create or point libraries within the script.
-apply material to selected objects
-apply material in edit mode to selected faces.
Option “Always Import”. By default the script wont import a material if its present on your scene. This way you can apply the same material to several objects without making duplicates of that material. This behaviour can be overriden so the script always performs a new import every time.
Option to import the material linked
Option to append the material instead subst.
Ive also updated Class Viewer. Now you can go to defs inside a class and improved “Go to last error” which now looks for the last error in the traceback which is often the line you want to debug.
Since blender 3.3, the module folder of the console has been moved.
from from console import intellisense
to
try:
from console import intellisense
except ModuleNotFoundError:
from bl_console_utils.autocomplete import intellisense
Change 2(send Console)
Variables were supported in early versions.
It is not perfect, but as an emergency
“CTRL + SHIFT + ENTER” will send the specified line to the console.
the specified line to the console.
I have created a modified version.
You can use it if you like.
Add an operator to output the selected line to the console (CTRL + SHIFT + ALT + ENTER).
Regarding this feature.
The regular console and the console used in “send console” are two different consoles.
If you want to check variables in the Window’s console, you
variables must also be sent together.