Timeline for Is it possible to get the property name from a data_path?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 26, 2022 at 23:23 | vote | accept | Harry McKenzie♦ | ||
Jul 16, 2022 at 14:19 | comment | added | Harry McKenzie♦ | so that i can auto add a driver to every field in the UI blender.stackexchange.com/questions/269433/… | |
Jul 16, 2022 at 14:03 | comment | added | Karan | Why do you need such function? | |
Jul 16, 2022 at 13:55 | comment | added | Harry McKenzie♦ |
@Karan you're right it can only cater to objects and its modifiers. i still need to find a way to make it possible for node trees as well. maybe a hard-coded check for node_tree.nodes in node_tree.nodes["Principled BSDF"].inputs[5].default_value
|
|
Jul 16, 2022 at 8:10 | comment | added | Harry McKenzie♦ | @Karan it works perfectly even modifiers. i added some sample outputs, let me know if you find something that doesn't work :) | |
Jul 16, 2022 at 8:10 | history | edited | Harry McKenzie♦ | CC BY-SA 4.0 |
added 382 characters in body
|
Jul 16, 2022 at 6:53 | comment | added | Karan | This will only work on the object's properties | |
Jul 16, 2022 at 6:34 | history | answered | Harry McKenzie♦ | CC BY-SA 4.0 |