[Bf-python] Mesh.Obj i/o
Campbell Barton
cbarton at metavr.com
Wed Jan 11 08:22:24 CET 2006
Ken Hughes wrote:
> Campbell Barton wrote:
>>
>> Also, would be be hard to have faces UV accept a list as well as a
>> tuple? Lists are much faster for stansforming UV's with List
>> Comprehension.
>>
>> eg
>>
>> for f in me.faces:
>> f.uv = [uv*2 for uv in f.uv]
>>
>> # Rather then
>> for f in me.faces:
>> f.uv = tuple([uv*2 for uv in f.uv])
>>
>> - not a bug deal but if you do a lot of uv coord manipulation you end
>> up with lots of tuples() around LC's.
>> maybe document that assigning a list wont make uv's share the list
>> object -
>
> Sorry, I'll try to work that change in also. It was based on similar
> thinking to Joseph's about booleans (believe it or not). I prefer
> using tuples for data which has a fixed size, and lists for things
> which do not. But that's my quirk. :-)
>
> Ken
Fair point- would it be possible for f.uv to accept a list but always
return a tuple?
- Cam
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.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