Timeline for How can I get the index of a custom property?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 9, 2018 at 11:19 | vote | accept | MRL | ||
Mar 9, 2018 at 7:48 | answer | added | J. Bakker | timeline score: 1 | |
Mar 8, 2018 at 23:32 | history | edited | MRL | CC BY-SA 3.0 |
added 382 characters in body
|
Mar 8, 2018 at 16:51 | comment | added | MRL | Thank you that was my first thought after rna_prop_ui.py | |
Mar 8, 2018 at 16:49 | history | edited | Ray Mairlot | CC BY-SA 3.0 |
title, tags
|
Mar 8, 2018 at 15:37 | comment | added | batFINGER |
If you have the nn_ naming convention, perhaps use that with list comp. {p : ob[p] for p in ob.keys() if p.name.startswith("%2d_" % index)}
|
|
Mar 8, 2018 at 15:31 | comment | added | MRL | Thank you, but I am small egg for that - i am average scripter, not programmer. So if there arent some simple way I must find other solution. | |
Mar 8, 2018 at 15:12 | comment | added | batFINGER |
View source on the custom props panel rna_prop_ui.py . Can emulate the way that is ordered .
|
|
Mar 8, 2018 at 15:11 | comment | added | MRL | Yes but i have 36-360 properties, sometimes they are used and sometimes they are not - it depends on source data. So I would like to get the data by index, because I know the order. | |
Mar 8, 2018 at 15:05 | comment | added | MRL | You cant manually use a name of property and you can add and remove property and searching the values only by for loop. I do everythink little bit responsive. | |
Mar 8, 2018 at 14:48 | comment | added | batFINGER |
Not sure how useful a custom property index is? Are they in same order as the ob.keys() list?
|
|
Mar 8, 2018 at 14:41 | history | asked | MRL | CC BY-SA 3.0 |