I just read through this thread: Object selection box in addon

Is there a way to have similar function but to make the selection in the box limited to a list of objects defined by the programmer in Python? I realize that this answer defines the poll function that should be used, but what if it's dependent on more than just the object but a number of conditions that should be passed into the poll function (e.g., a sibling property in a PropertyGroup)?

  • 1
    $\begingroup$ Does this answer your question? blender.stackexchange.com/questions/75185/… blender.stackexchange.com/questions/252679/… $\endgroup$ Commented Jun 24, 2022 at 22:50
  • $\begingroup$ Hey! Really close, but the poll function that belongs to the PointerProperty is too limited for what I need to do. $\endgroup$ Commented Jul 1, 2022 at 21:44
  • 1
    $\begingroup$ Please create a new question that details what condition you're trying to check, add your attempt you've created so far and let us know what part you're having trouble with. $\endgroup$ Commented Jul 1, 2022 at 21:46
  • $\begingroup$ @RobertGützkow Okay, I can do that. Thanks! $\endgroup$ Commented Jul 1, 2022 at 21:47
  • $\begingroup$ @AnsonSavage Just a note here, it looks like there may be a way to access the property itself using getters and setters: docs.blender.org/api/current/… $\endgroup$ Commented Jul 2, 2022 at 23:20


Browse other questions tagged .