Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

July 03, 2011

List Comprehension Quick example


>>> m = [["sta",[2,1]],["stab",[22,11]],["stam",[24,14]]]
>>> en = [f[1] for f in m]
>>> en
[[2, 1], [22, 11], [24, 14]]

No comments:

Post a Comment

Please use Blender.StackExchange.com for python scripting questions unrelated to this post.