[Bf-python] Pycon 2010 embedding session

Campbell Barton ideasman42 at gmail.com
Wed Nov 4 15:54:44 CET 2009


Hi Peter. we already mailed a few times regarding pygame.
For Blender 2.5 we have a new python api which is mostly re-written
from scratch, heres an overview. let us know if you have other
questions.

Pros with Blender 2.5's api...
- Core API still written in CPython only.- ~5000 lines of C code, old
api was ~100,000 lines.
- Thin wrapper for our own data api (called RNA which intern wraps our DNA)
- Python/UI/Animation system all use RNA-Api- Important to have the
same entry points for all 3!
- Python classes can register themselves as tools, ui elements (panels
& menus) and rendering engines.
- Python 3.1 only (used to support multiple python versions, was problematic)
- Moving to scripts to pep8 compliance
- Being used & developed for the Durian project - durian.blender.org

Cons...
- No nice way to use threading (AFAIK)
- PyObjects reference pointers, can cause crashes on accessing free'd
data still (some slow debug mode that prevents crashes is possible)
- Many tools are not ported, api is not 100%. However its possible to
write many tools still.

On Tue, Nov 3, 2009 at 6:51 AM, Peter Shinners <pete at shinners.org> wrote:
> Hello guys, I just got subscribed to the list.
>
> I've been approved to do one of the sessions at Pycon 2010. My topic is
> going to be about how Python is being embedded, deployed, and extended
> in major applications. I'm definitely going to be covering Maya,
> Houdini, Nuke, and other commercial applications. I'd also like to get
> some discussion from core Blender developers about this.
>
> Do you think the mailing list would be a good place to discuss this? If
> there is a smaller core of developers I could do some "reply all" or
> one-on-one emails directly.
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>



-- 
- Campbell



More information about the Bf-python mailing list