<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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>
    <br>
    <div class="moz-cite-prefix">Le 30/06/2016 à 13:08, Khalifa Lame a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAKQbnQ1hFrhfubHStRbn8KPzr+=yTZdaHrAHUCM3_jthGs3o=w@mail.gmail.com"
      type="cite">
      <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 class="gmail_signature"
                data-smartmail="gmail_signature">khalibloo®<br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="https://lists.blender.org/mailman/listinfo/bf-python">https://lists.blender.org/mailman/listinfo/bf-python</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>