<div dir="ltr"><div><div>Hello Campbell,<br><br></div>Thanks for your answer !<br><br></div>Julien<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 15, 2016 at 3:44 AM, Campbell Barton <span dir="ltr"><<a href="mailto:ideasman42@gmail.com" target="_blank">ideasman42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Afraid the only 'supported' way is to manually re-create the<br>
collection and copy values.<br>
<br>
eg:<br>
<a href="http://www.pasteall.org/66371/python" rel="noreferrer" target="_blank">http://www.pasteall.org/66371/python</a><br>
<br>
Also, I needed to change the operator to use a CollectionProperty.<br>
<br>
Note that you can workaround this by assigning underlying ID-properties,<br>
but this isn't guaranteed to work in the future.<br>
<div><div class="h5"><br>
On Fri, Mar 11, 2016 at 9:14 AM, Julien Duroure<br>
<<a href="mailto:julien.duroure@gmail.com">julien.duroure@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I am looking for a way to pass collection to a python defined operator.<br>
> I tried this code [1], but get following error :<br>
><br>
> AttributeError: bpy_struct: attribute "collection" from<br>
> OBJECT_OT_example_op" is read-only<br>
><br>
> Any ideas ?<br>
><br>
> Julien<br>
><br>
> [1] : <a href="http://www.pasteall.org/66193/python" rel="noreferrer" target="_blank">http://www.pasteall.org/66193/python</a><br>
><br>
</div></div>> _______________________________________________<br>
> Bf-python mailing list<br>
> <a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
> <a href="http://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
- Campbell<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</font></span></blockquote></div><br><br></div></div></div>