[Bf-python] Sel Same Python Script
Campbell Barton
cbarton at metavr.com
Mon Jul 26 19:27:15 CEST 2004
Hi, theres a bug in my python script (sel same)\
I dont know how to select and unselect faces using there flags properly.
(whats a bitwise vector???)
def sel(f):
f.flag = f.flag or NMesh.FaceFlags['SELECT']
def unsel(f):
f.flag = f.flag and NMesh.FaceFlags['SELECT']
f.flag = f.flag or NMesh.FaceFlags['SELECT'] # This works to select any
face
But how do I unselect a face
dont say.
f.flag = 0 because that dosent6 keep other flags.
- Cam
Campbell Barton wrote:
> Will, commiting this sounds good.
> Ton- Should the Sel Same UV be removed from BF-Blender now? The code
> is a good reference but thats probably only because Im still quite new
> to C, mabe comment it.
>
> Also, would it be Possible to Move this menu to the Face/Select Menu-
> I know its a more obscure menu but its realy where this belongs.
> - Cam
>
>
>
> Willian Padovani Germano wrote:
>
>> Hi Campbell,
>>
>> ----- Original Message -----
>> From: "Campbell Barton" <cbarton at metavr.com>
>> To: <bf-python at blender.org>; <bf-committers at blender.org>
>> Sent: Monday, July 26, 2004 12:25 AM
>> Subject: [Bf-committers] Sel Same Python Script
>>
>>
>>
>>> Hi, heres a script that selects the same face as the active based on
>>> different attributes, it uses menus and the PupFloatInput boxes too.
>>>
>>
>>
>> Great, since it's gpl and we're close to a cvs freaze, I'll commit it
>> to cvs
>> today, ok?
>>
>> --
>> 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
More information about the Bf-python
mailing list