[Bf-python] re-ordering collection items

Tamito KAJIYAMA rd6t-kjym at asahi-net.or.jp
Wed May 14 04:02:27 CEST 2014


Hi,

Is there a general way to re-order items of bpy_prop_collection
in Python? For example, how can we swap two modifiers in
bpy.context.object.modifiers? Since the collection is read-only,
the general Python sequence protocol seems not to work.

-- 
KAJIYAMA, Tamito <rd6t-kjym at asahi-net.or.jp>



More information about the Bf-python mailing list