I would like to get only 3 third element of an EnumProperty, is a string:

myEnum: EnumProperty (name = "Enum", items = searchCallback)

searchCallback is a function that returns the list to me.

Then the list returns me ("ITEM", "Item", "Item description") how can I get "Item description"

print (self.myEnum) returns "ITEM" if I try to do print(self.myEnum[2]) it returns "E". I don't know if I will use this function but I would still like to find out if this is possible

  • 1
    $\begingroup$ Have you tried accessing the enum_items through bl_rna, similar to this answer? $\endgroup$
    – Robert Gützkow
    Dec 19, 2019 at 18:15
  • $\begingroup$ Interesting, I think I'm following a wrong way for what I should be doing, but I think it's useful to go into this topic too. Basically the third element would be a directory that is stored, so as to have faster access to that file, since "ITEM" are a file $\endgroup$
    – Noob Cat
    Dec 19, 2019 at 20:57


You must log in to answer this question.

Browse other questions tagged .