Say we want to navigate a tree structure without knowing all the data ahead of time, is it possible to do this in Blender?

For example, a menu which dynamically loaded a directory hierarchy from the filesystem (without having to scan the filesystem and generate a menu type for every directory ahead of time first).

  • $\begingroup$ I think this question is really unclear and think you should edit it to make it more clear. $\endgroup$ – Skylumz Jun 7 '18 at 22:37
  • $\begingroup$ Added example . $\endgroup$ – ideasman42 Jun 8 '18 at 6:18
  • 2
    $\begingroup$ Why is it necessarily a menu, instead of, for instance, a separated popup panel called from a menu? $\endgroup$ – lemon Jun 8 '18 at 15:52
  • $\begingroup$ I can't gotcha what do you want :( $\endgroup$ – yhoyo Jun 11 '18 at 18:05
  • 1
    $\begingroup$ @batFINGER, I think this could be more simple if layout.menu was returning a menu object (so that a property value can be set on the corresponding class instance). Do you know why it is not the case (returns None)? $\endgroup$ – lemon Jun 14 '18 at 8:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.