[Bf-python] Text Editor Project and BPyTextPlugin

Campbell Barton ideasman42 at gmail.com
Wed Jul 23 11:28:55 CEST 2008


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
>



More information about the Bf-python mailing list