[Bf-python] API : pass collection as parameter of python operator

Julien Duroure julien.duroure at gmail.com
Thu Mar 10 23:14:24 CET 2016


Hello,

I am looking for a way to pass collection to a python defined operator.
I tried this code [1], but get following error :

AttributeError: bpy_struct: attribute "collection" from
OBJECT_OT_example_op" is read-only

Any ideas ?

Julien

[1] : http://www.pasteall.org/66193/python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20160310/e8aeeb71/attachment.html>


More information about the Bf-python mailing list