4
$\begingroup$

Is there any option for Python autocomplete to work properly in Blender?

Currently it shows under Tab all the possible options that were entered previously in the code. It doesn't make any sense to use this feature.

Maybe you need to set something up somewhere in the Blender to make it work like in any eclipse VS editor?

enter image description here

$\endgroup$
1
  • $\begingroup$ That will be very hard to achieve IMO, you need to do it in the User Interface, and a separated python linter, which might make the text editor more complicated $\endgroup$ – HikariTW Jul 28 '20 at 2:11
1
$\begingroup$

The terminal has autocompletion with the actual properties of objects when you press tab, which works very well to explore the available syntax in the API.

enter image description here

There's no real way to access bpy from IDEs such as VSCode. But you can get pretty close with fake-bpy-module, which emulates many of the properties and will give you an advantage as a developer with a good integration of many other python packages.

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ can also build bpy as a python module. In which case will autocomplete for most python editors. (can confirm for vim) $\endgroup$ – batFINGER Jan 4 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.