Python package rearrangement : for easy testing/embedding

This forum is aimed at user contributions, in the form of assets, side projects, code patches and similar.

Moderator: joepal

Python package rearrangement : for easy testing/embedding

Postby piper » Thu Mar 05, 2009 1:53 pm

My suggestion is that the python packaging should
be rearranged in order to facilitate testing
and embedded usage from Blender ...

I tried so far unsuccessfully(inexperience with extensions)
to create a package structure something like :
Code: Select all
       mh/__init__.py
               main.py
               mh.so     ## C extension

       mh/core/__init__.py
                     module3d.py
         
       mh/plugins/__init__.py
                         guicommon.py


In the hope that this could eventually provide a very high level
and easily automated interface to do things like the below pseudo-code :
Code: Select all
import mh
mh.init(gui=False)
mh.configure(gender=+0.1,weight=+5,tone=-0.3,age=30)
for g in range(3):
     mh.configure(gender=+0.1)
     mh.export2collada("/tmp/test%s.dae" % g )


And other more detailed morphings too.

As this kind of arrangement would make it easy to create
small test scripts or functions, I think it would be beneficial
for regression testing during the development process and also
aid development of the python API by widening its usage.

Because of this I think this item should come high up the
release roadmap ahead of GUI improvements.
piper
 
Posts: 3
Joined: Mon Mar 02, 2009 10:20 am

Re: Python package rearrangement : for easy testing/embedding

Postby Manuel » Thu Mar 05, 2009 10:18 pm

Yes, I've posted a similar thing some months ago:

viewtopic.php?f=9&t=201

but it was unanswered..

Regards,

Manuel
Manuel
 


Return to User contributions

Who is online

Users browsing this forum: No registered users and 1 guest