Scripting in Blender with Python, and working on the API
5 posts • Page 1 of 1
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.
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...