[Bf-python] Mesh.Obj i/o

Ken Hughes khughes at pacific.edu
Wed Jan 11 07:53:40 CET 2006


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



More information about the Bf-python mailing list