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).
blender_path/2.79/scripts/templates
it is added automatically to the menu. As it is now, If you add a new folder into the templates folder, the files of the subfolder are added to the menu, but in the bottom level (along with the folder). The concept is to make the "New Folder" item, (and any folder) a menu so themenu > submenu> subsubmenu > item
choice is:folder/subfolder/subsubfolder/file
. $\endgroup$ – batFINGER Jun 12 '18 at 8:12__init__
method, and set the filepath class property. Hopefully being able to pass props to menu, or have some ref to the parent menu, to submenu more effectively, is coming in 2.8. 8^) @yhoyo Here is a randomly expanding menu example $\endgroup$ – batFINGER Jun 14 '18 at 11:07