Menu

#808 can't get code completion to work with blender

open
5
2008-11-11
2008-11-10
lbarthelet
No

Hi Luc,

> Blender can use the Python 2.5, but the blender-python API is in C.
> there is no Python API outside of blender.
>
> we can run any script we want in blender since it can use an external
> python install. But I do not know how to extract or see the blender API.
>
> This is really limiting the benefits I am getting out of pydev during
> code development.
>
> I wrote some tools to use the python attributes to try to re-create
> some fake Python api, but they are not good enough.
>
> I feel like I am missing on something simple that would fix this.

Please open a bug-request for that (asking for information on how to configure blender). I'll download it here and see how code-completion could gather that information (but please open that bug-request...
it's kind of hard to manage the requests in the list... for info on how to create the request see:
http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug\)

Cheers,

Fabio

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2008-11-10

    Can you give an example of a completion that you'd expect to have working?

    Adding blender\.blender\scripts as an external source folder is enough for what you want?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2008-11-10
    • status: open --> pending
     
  • lbarthelet

    lbarthelet - 2008-11-11

    no the scripts are not the blender API.

    something as simple as :

    import Blender
    from Blender import Scene

    def test():
    scene = Scene.GetCurrent()

    should auto complete.

     
  • lbarthelet

    lbarthelet - 2008-11-11
    • status: pending --> open
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.