[Bf-python] mesh block selection

models at paposo.com models at paposo.com
Wed Oct 1 05:16:17 CEST 2003


Here's a weird little ditty I ran across.

I'm running this script:

import Blender
sphere = Blender.Object.New('Mesh','Sphere')
mesh = Blender.NMesh.New()

for j in range(0,50):
    v = Blender.NMesh.Vert()
    v.co[0] = j
    v.co[1] = j
    v.co[2] = 0
    mesh.verts.append(v)

sphere.link(mesh)
sc = Blender.Scene.getCurrent()
sc.link(sphere)

This now works properly so that no useless default meshes are created.
The problem:
    Hit F9 to go to the editmesh screen
    1) If you right click a mesh object in the 3D view
    2) and then switch back and forth between meshblocks (using the [-] )
    3) the object in the 3D view changes to reflect the meshblock your
looking at.

If you try dragging the two objects around and then switching meshblocks
you'll see what i mean. weird.





More information about the Bf-python mailing list