Ajout des kits : train, racing, golf, skate, personnes

This commit is contained in:
phroy 2023-10-27 17:27:03 +02:00
parent d2c91c3fc4
commit 1a4e27ed70
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -2,13 +2,13 @@ import os
import bpy
# put the location to the folder where the objs are located here in this fashion
# this line will only work on windows ie C:\objects
path_to_obj_dir = os.path.join('/home/phroy/Bureau/seriousgames/blender-edutech/git/climway2/asset/kenney_modular-buildings/Models/')
path_to_obj_dir = os.path.join('/home/phroy/Bureau/seriousgames/blender-edutech/git/climway2-carte/asset/kenney_train-kit/Models/OBJ format')
# get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))
print (file_list)
# get a list of files ending in 'dae'
# get a list of files ending in 'obj'
obj_list = [item for item in file_list if item.endswith('.obj')]
# loop through the strings in obj_list and add the files to the scene
for item in obj_list: