[Bf-python] Mesh modes

Toni Alatalo antont at kyperjokki.fi
Fri Dec 9 21:18:15 CET 2005


Ton has expressed concerns that the py api should respect the contexts Blender 
has, and seems that we are now trying to find a solution for it, so am 
exceptionally bothering him with things from this list to possibly get 
insights..

~Toni

On Friday 09 December 2005 14:33, Ken Hughes wrote:
> Campbell Barton wrote:
> > Hi Ken, was making a sculpt mesh with the ability to modify geometry
> > adaptivly,
> > it uses remove doubles and subdivide.
> > The problem I have is that to remove doubles the user needs to be in
> > Vertex mode and to subdivide I need to be in edge mode.
> >
> > Could we have a Blender.Mesh.Mode variable/dict/flag? so we can set the
> > editmoesh context, its needed for editmesh tools.
>
> The flag might be handy, but I'm not sure Blender.Mesh is the right
> place to put it.  Since the flag is stored in G.scene->selectmode, seems
> like it should be more of a global setting.  Implies to me a Scene.Edit
> module or something, but maybe that's overkill.
>
> It might be simpler to just add code inside Mesh.c to switch into the
> right mode for each function, assuming there's one correct mode per
> function (otherwise, add a parameter to the method to select the edit
> mode).
>
> Ken
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list