[Bf-python] uvSel?

Campbell Barton cbarton at metavr.com
Tue Nov 29 00:59:25 CET 2005


Hi Ken, I tried to syncronise selected verts to the uv selection. this 
should work but dosent seem to?
Looks like uvSel dosent actualy write at all,
- Cam

________________________

from Blender import *

def main():
    Window.WaitCursor(1)
    scn = Scene.GetCurrent()
    ob = scn.getActiveObject()
    me = ob.getData(mesh=1)
   
    # Unselect all edges so subdiv only operates on 1.
    for f in me.faces:
        f.uvSel = [v.sel for v in f.v]

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list