I’m trying to create a python script to retrieve all STL names in a folder, and then for each STL, import the filename and bake out geometry.
Most of the heavy lifting is already setup, thanks to Human. I am now just trying to figure out how to run the .gh definition once for each STL and wait for it to computer before baking & exporting. Then continue on to the next file.
Here is how I have started.
RunBatch = bool toggle
STLs = input string of filenames
C = int (length of STLs list)
AllSTLs = output string just for panel display/debug
ThisSTL = output string for us within the .gh definition
Bake = output bool for Human Bake component
import rhinoscriptsyntax as rs
i = 0
STLList.append(STLs) AllSTLs = STLList for i in range(C): ThisSTL = STLList[i] Bake = True Bake = False i += 1
I’m sure this is pretty far from functional regarding the Bake stuff, but the STL name import does work, and AllSTLs does display the full list as expected.
Can anyone point me in the right direction? I’m sure this has been discussed ad nauseum…