<div dir="ltr">Alternatively, do those mesh elements have internal unique constant IDs i can access? Indices change all the time (I believe), so they are not a reliable way to identify mesh elements.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 3:21 PM, Khalifa Lame <span dir="ltr"><<a href="mailto:khalibloo@gmail.com" target="_blank">khalibloo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah, that explains a lot. An error message during prop creation would have been very helpful. So what options (if any) do I have? Verts, edges and faces do have individual properties like bevel and crease weights. How were those properties created? Can I somehow squeeze in my own custom properties as well?<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 1:11 PM, Bastien Montagne <span dir="ltr"><<a href="mailto:montagne29@wanadoo.fr" target="_blank">montagne29@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>ID properties are only available for IDs (and a few other special
      cases, like bones and some UI classes). Other types just do not
      support them at all.</p>
    <p>To check wether a type supports ID properties, just try to use
      one of its mapping protocol item (e.g. <tt>C.object.keys()</tt>
      works, while <tt>C.object.vertex_groups[0].keys()</tt> does not).<br>
    </p><div><div>
    <br>
    <div>Le 30/06/2016 à 13:08, Khalifa Lame a
      écrit :<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">
        <div>Hi. I need assign custom properties to mesh vertices, edges
          and faces. It doesn't throw any errors on creation of the
          custom props, but after they've been created, they don't
          behave as one would expect. They are read-only tuples rather
          than bpy.props.IntProperty() for example.<br>
          <br>
        </div>
        For comparison, here's the normal behavior of a custom property<br>
        <div>
          <div><img src="cid:part1.AB8D399E.49D75E36@wanadoo.fr" height="60" width="387"><br>
            <br>
          </div>
          <div>Here's what I get on certain bpy.types<br>
            <img src="cid:part2.0396229D.750917CC@wanadoo.fr" height="61" width="430"><br>
          </div>
          <div>​An unusable tuple!<br>
            <br>
          </div>
          <div>And if I try to assign a value, I get<br>
            <img src="cid:part3.52291FA6.F9D2E730@wanadoo.fr" height="65" width="440"><br>
            ​<br>
            <br>
          </div>
          <div>Is there a reason for this? Is there a known workaround
            or hack? I really do need to store custom props on vertices,
            edges, faces and vertex groups.<br>
          </div>
          <div>​<br clear="all">
            <div><br>
              -- <br>
              <div data-smartmail="gmail_signature">khalibloo®<br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Bf-python mailing list
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" target="_blank">https://lists.blender.org/mailman/listinfo/bf-python</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-python" rel="noreferrer" target="_blank">https://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div data-smartmail="gmail_signature">khalibloo®<br><br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">khalibloo®<br><br></div>
</div>