Can’t do it with Python, but I can with design script.
Define all paths first with dynamo, then use a nested if statement similar to the thread below to pull correct directory based on the substring value for the first two characters.
Thank you very much for your responses @jacob.small i have no experience with designscript, but i am very curious if i can figure out what you mean. @4bimfercesp Your second solution looks very promising.
I don’t have computer with Dynamo here so i will have to wait till monday before i can try your solutions.
Thanks again, and have a nice weekend.
you can add IN[1] if you wish so it will be same as you have on your screen shot above. I thought it is not needed if you already decided on what the main folders will be and only getting you sub-folders from the string input.