[Bf-python] blender and external editors

Dietrich Bollmann diresu at web.de
Thu Jul 24 04:56:14 CEST 2008


On Wed, 2008-07-23 at 11:28 +0200, Campbell Barton wrote:
> 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.

Sorry, I make it a separate discussion then.

On Wed, 2008-07-23 at 12:47 +0800, Chris McCormick wrote:
> Vaguely on topic, I recently discovered that I can just do a "from
> myproject import mymethod" and then "mymethod()" inside my script
> controllers in Blender. That means that I can write all my code in
> external files with my normal editor and just have those two lines
> inside the Blender script.

So you write the code with another editor and then hit the
execution/evaluation shortcut in Blender to execute the code?

I hope I don't make everybody hate me if in this context I mention the
command port patch again: http://formgames.org/blender/command-port/ and
https://projects.blender.org/tracker/index.php?func=detail&aid=6887&group_id=9&atid=127 ...  

I am using the command port client (bash) at the place of the python
executable from the emacs python mode - which works quite fine.  It
allows me to use the functionality of emacs python mode for developing
blender scripts.  The nice thing is that by doing so I can execute /
evaluate my code directly from emacs.

That is why I was interested to know if Ian's "system of scripts to ease
python development in Blender" could be used from another editor also. I
thought about making the emacs python mode even better for blender
python development by integrating these functions some day (...if I ever
find the time).  Of course rather than asking these questions I also
could try it myself - but mailing lists are for asking questions, aren't
they?

The other question - "is there a decent python mode for vi?" - interests
me because I would like to know if it could be possible to use vi
together with the the command port shell client "bash" for blender
python development.  I am not a vi user myself - so my motivation is
just curiosity in this case.

Thanks, Dietrich


> Best,
> 
> Chris.
> 
> On Wed, Jul 23, 2008 at 12:40:12PM +0900, Dietrich Bollmann 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
> -------------------
> http://mccormick.cx
> _______________________________________________
> 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