[Bf-python] Text Editor Project and BPyTextPlugin

Stani spe.stani.be at gmail.com
Fri Mar 13 23:44:27 CET 2009


I'm picking up this thread again. I was trying to develop a Blender Text
plugin. It works fine if I use it from the menu (Text>Text Plugins).
However assigning a shortcut doesn't work. So I was wondering if this
was intentionally disabled or if its broken? If it is broken, it would
really be nice if it is fixed for 2.49

Another question about Text Windows... I thought that if I set the
attribute 'follow_cursor' that the cursor would always be visible. Right
now if I write text which is bigger than its window, the cursor
dissappears and doesn't scroll with it. I tried with calls to
setCursorPos and selection, but it doesn't help. So maybe it doesn't
exist, but it would be nice to have.

Best regards,

Stani

Op woensdag 23-07-2008 om 11:28 uur [tijdzone +0200], schreef Campbell
Barton: 
> Questioning the relavance of a text editor in blender should be a
> separate discussion.
> Can we please stay focused on the topic and answer some of the
> questions Ian is asking.
> 
> Storing cache in the blender module is ok by me though Im told this is
> not a good practice.
> 
> Python/C api side of things seems good, however I want to make sure
> the Blender integration is acceptable for merging in trunk.
> Im happy with changes in...
> * source/blender/blenkernel/intern/text.c
> * source/blender/src/drawtext.c
> 
> Text isnt wasnt working on my 64bit linux system (all text datablocks
> vanish on load),
> Found this was because of time_t in DNA_text_types.h, only use types
> like long, int, short etc. - easy fix.
> 
> It would be great if anyone is interested in testing the branch and
> even writing some simple tests.
> Last week of apricot for me and am fairly busy, but after that can
> take some more time to look into this.
> 
> - Campbell
> 
> On 7/23/08, Dietrich Bollmann <diresu at web.de> wrote:
> > On Tue, 2008-07-22 at 22:37 -0600, John R. Nyquist wrote:
> >> It's funny you bring up emacs. I just sent this comic to a friend last
> >> night:
> >> http://xkcd.com/378/
> >
> > :)
> >
> >> I'm a vi person myself  ;-)
> >
> > That's baaad!!!!   :)
> >
> > ...emacs is just a habit.  Whenever I try some different editor for a
> > nicer interface, more buttons, code correction by parsing the written
> > stuff in realtime, ... I get mad about my finger habits and finally get
> > back to good old emacs...
> >
> > I actually tried several times to switch to some other editor - and even
> > lost a job because my boss thought that the only language proving the
> > intelligence of its user is java and the only good ide intellij -
> > because it is expensive.
> >
> > By the way, is there a decent python mode for vi - and do you prefer to
> > use it rather than blenders build-in editor?
> >
> > Cheers, Dietrich
> >
> > ...sorry for spamming the list with unrelated stuff...
> >
> >> Regards,
> >> John
> >>
> >>
> >> On Tue, Jul 22, 2008 at 9:40 PM, Dietrich Bollmann <diresu at web.de>
> >> wrote:
> >>         Hi Ian,
> >>
> >>         [admitting that I only saw the video and never tried your
> >>         tools myself]:
> >>         Your editing functionality looks very impressive and helpful!
> >>
> >>         Thank you very much!
> >>
> >>         As somebody completely accustomed to do everything with emacs
> >>         I only
> >>         wonder why every tool needs its own editor nowadays (see for
> >>         example
> >>         processing, grace, ...).
> >>
> >>         I find it kind of annoying to have to learn another editor for
> >>         every
> >>         language / system I am dealing with and rather accept to do
> >>         without some
> >>         very specialised functionality than to renounce my good old
> >>         emacs
> >>         functionality I am used to.  Of course I don't want to say
> >>         that
> >>         everybody should only use emacs :) the same is valid (for
> >>         other people
> >>         used to those tools) for vi, eclipse, ...
> >>
> >>         So here a question:  Do your scripts depend tightly on Blender
> >>         - or
> >>         could it be possible to integrate them easily into another
> >>         editor
> >>         (python / blender mode) also?
> >>
> >>         Thanks :)
> >>
> >>         And good luck :)
> >>
> >>         Dietrich
> >>
> >>
> >>
> >>         On Tue, 2008-07-22 at 10:18 +0100, Ian Thompson wrote:
> >>         > Hi,
> >>         >
> >>         > I am working on the text editor in Blender and have produced
> >>         a system
> >>         > of scripts to ease python development in Blender. The system
> >>         works
> >>         > around a BPy module, namely BPyTextPlugin. If possible I
> >>         would like to
> >>         > get some feedback on the implementation of this module.
> >>         >
> >>         > A topic of concern was that it caches results inside the
> >>         module.
> >>         > However, I was careful not to include pointers to any
> >>         Blender objects
> >>         > (which may become invalid). The only external pointers are
> >>         to modules
> >>         > imported by the system. If you have any questions, please
> >>         reply here
> >>         > or email, or catch me on IRC (I'm "quorn").
> >>         >
> >>         > The BPyTextPlugin module can be found here:
> >>         >
> >>
> >> https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-quorn/release/scripts/bpymodules/BPyTextPlugin.py
> >>         >
> >>         > With example scripts (starting "textplugin_") found here:
> >>         >
> >>
> >> https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-quorn/release/scripts/
> >>         >
> >>         > Note that to run these scripts you will need a recent build
> >>         of my
> >>         > soc-2008-quorn branch. Alternatively there is a video of the
> >>         features
> >>         > available here (and a little more information):
> >>         >
> >>         http://wiki.blender.org/index.php/User:Quorn/SummerOfCode2008
> >>         >
> >>         > I look forward to hearing your opinion.
> >>         >
> >>         > Ian
> >>         > _______________________________________________
> >>         > Bf-python mailing list
> >>         > Bf-python at blender.org
> >>         > http://lists.blender.org/mailman/listinfo/bf-python
> >>
> >>         _______________________________________________
> >>         Bf-python mailing list
> >>         Bf-python at blender.org
> >>         http://lists.blender.org/mailman/listinfo/bf-python
> >>
> >>
> >>
> >>
> >> --
> >> =======================
> >> John R. Nyquist
> >> Nyquist Art + Logic
> >> http://nyquist.net/
> >> http://bitsofblender.com/
> >> =======================
> >> _______________________________________________
> >> Bf-python mailing list
> >> Bf-python at blender.org
> >> http://lists.blender.org/mailman/listinfo/bf-python
> >
> > _______________________________________________
> > Bf-python mailing list
> > Bf-python at blender.org
> > http://lists.blender.org/mailman/listinfo/bf-python
> >
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python




More information about the Bf-python mailing list