[Bf-python] mesh block selection

models at paposo.com models at paposo.com
Sun Oct 5 15:17:22 CEST 2003


I see.... :p
The meshbrowse button is not really browsing meshes.  It's changing the
meshblock associated with the active object.... oops. Sorry.

About redrawing the scene after Scene.link().
Try runnng this script:

import Blender
obj = Blender.Object.New('Mesh')
mesh = Blender.NMesh.New()

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

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

Hit alt-P and look in the 3dview.  It doesn't update. You have to drag
something around, etc. for the window to update and redraw the new linked
object. That's what i was saying.





More information about the Bf-python mailing list