Closed clankill3r closed 4 years ago
You can get and set custom properties using the Object Attribute Input/Output node.
Ah cool, I did a search for Properties but nothing came up. I close it for now, maybe I open it later if I have a more refined idea. Now it is a property for each element. I don't know if this also consumes memory for the tooltip, min and max etc. If so this could eat a lot of memory when dealing with big data.
I'd like to reopen this and take on it. (not for 1_6) Today's method is more of an accidental way to do it and has no real ways to manage the props.
With the above in mind, take a look at these 2 nodes for now: set and delete list the existing names may copy them in nodes / generic (v1_6) to test
the set does create and delete, and also has a on off also contains a way to avoid cycles and other rna paths it has an option regarding AN keys, as they should be mostly managed by dedicated tools
only implemented obj, obj.data, scene of course, the live text field update may create unwanted props, but at leas there is an on/off for the whole process
oh, I've not made a reader, but it's not gonna be very different from obj atttribute only it will allow / look for only custom props, no need to extra lingo like [""] and such we'll see
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
(This is just thinking out loud, I haven't put much thought into this, although I have the idea for some weeks now)
When creating data visualisations it can be usefull to attach data on an object. To give an example, I made a sketch that created cubes for every road connection of venice. Two of those where really far away, I had no idea which one of the thousands of entries those where.
The best way for me to have figured out was to have an id assigned to the cube matching the dataset id. Then I could have select them and check their id in the dataset.
Here an image of the Custom Properties panel as a refresher in case needed. (I added one as an example)
Here the manual about custom properties (quite new I assume since all the todo's in it). https://www.blender.org/manual/data_system/custom_properties.html
(I haven't yet thought to much about how the get and set node should work). Anyway, let me know what you guys think.