[Bf-python] Sel Same Python Script

Campbell Barton cbarton at metavr.com
Wed Jul 28 06:55:51 CEST 2004


Hi, this fixes an embaresing bug where a face with 2 verts (an edge) 
could get into the face loop and mess things up.
Is there a way I could have access to maintain my own scripts? Is it 
possible to have BF-Blender CVS certain dirs?

- Cam


Willian Padovani Germano wrote:

>Hi Campbell,
>
>----- Original Message -----
>From: "Campbell Barton" <cbarton at metavr.com>
>To: <bf-python at blender.org>
>Sent: Monday, July 26, 2004 2:27 PM
>Subject: Re: [Bf-python] Sel Same Python Script
>
>After 2.34 I'll follow your suggestion and add a nicer way to set face
>selection state, but for now:
>
>  
>
>>      def sel(f):
>>        f.flag = f.flag or NMesh.FaceFlags['SELECT']
>>      def unsel(f):
>>        f.flag = f.flag and NMesh.FaceFlags['SELECT']
>>    
>>
>
>f.flag |= NMesh.FaceFlags['SELECT'] # will set selection
>f.flag &=~NMesh.FaceFlags['SELECT'] # will unselect, note the '~' to invert
>bitflags
>
>If you have updates to the script just send them to me, I'm still working on
>some radiosity module stuff and will commit the updated scripts and doc
>later today or tomorrow.
>
>Yes, UV is the best available place for that script but it's not ideal.
>After 2.34 we'll discuss updates related to bundled scripts, possibly add
>more 'slots'.
>
>--
>Willian, wgermano at ig.com.br
>
>_______________________________________________
>Bf-python mailing list
>Bf-python at blender.org
>http://www.blender.org/mailman/listinfo/bf-python
>
>
>  
>


-- 
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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sel_same.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040728/d24ae485/attachment.ksh>


More information about the Bf-python mailing list