Page 1 of 1

Request: Custom object attributes

Posted: Wed May 11, 2005 3:32 pm
by KDR_11k
It would be VERY helpful if Python scrips could add custom attributes to any form of Blender object (vertex, face, lamp, object, curve, node, ...). The point of this is that your script could mark objects for its purposes (e.g. flag a vertex as "modify" to know which ones to change). Keeping separate dictinaries or something wouldn't work as well because the object identifiers could change (e.g. vertex numbers) and some objects don't have persistent identifiers so attributes that stay with the objects even through alterations would come in quite handy.

Posted: Wed May 11, 2005 5:04 pm
by z3r0_d
in the near term I'd consider this highly unlikely

perhaps for blender 3.0?

Posted: Sat May 14, 2005 7:53 pm
by Brandano
I agree with the idea, it could be very useful. But in the meantime you could just create a text object holding the attributes you want linked to the object and make it a child of the object itself. This way it willbe directly erlated to it, readable by the script and saved together with the rest of the scene. just a tought...

Posted: Sun May 15, 2005 9:02 am
by KDR_11k
I'm not sure you can parent anything to a vertex or edge. I used the term object here as the top class from which all other classes are derived.

Posted: Sun May 15, 2005 1:06 pm
by levon
you can parent objects to verticies, select 2 objects, press tab, then select the vert, and press ALT P. or you could use hooks.