[Bf-python] Sel Same Python Script - Updated

Campbell Barton cbarton at metavr.com
Tue Jul 27 01:57:19 CEST 2004


Hi Willian, I updated the script to select the faces properly, the docs 
realy need this info in them too.

- 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/20040727/9d332464/attachment.ksh>


More information about the Bf-python mailing list