Download

Create buttons in widget based on available materials in folder

Hey all, I am currently making architecture visualizations and the user can change the materials of the floors, walls etc. I can do this no problem, but now that I have created a lot of materials, I want to have the widget show up all the available materials in a certain folder, and the widget will show up a button for each material. Does anyone know how i can get this working?

So if there is only 2 materials in the folder ‘materials’, when I load up the widget, it will only show 2 buttons. I hope I am clear enough and someone knows the solution to this! Thank you.

I think it would be alot easier for you to add materials as data table array for each item piece than write a code which would read materials from folder.