I want to create a script that lets me select a bunch of JPG files and that creates for each JPG a plane with a material of that JPG assigned to it. Now I’ve managed to do that with one File:
f = getOpenFileName caption:"Open JPGs" types:"JPG (*.jpg)|*.jpg|All Files (*.*)|*.*|" myFile = filenameFromPath f myPlane = plane() myPlane.name = myFile myPlane.length = 30 myPlane.width = 40 myPlane.material = standard diffuseMap:(myBitmap) showInViewport:true name:myFile Self_Illumination:100
Work perfectly but getOpenFileName lets me only select one JPG at a time. How do I do that if I want to select several JPGs at once?