mirror of
https://forge.apps.education.fr/climway2/climway2-carte.git
synced 2024-01-28 05:44:42 +01:00
Ajout des kits : train, racing, golf, skate, personnes
This commit is contained in:
parent
d2c91c3fc4
commit
1a4e27ed70
BIN
asset/kenney_train-kit/kenney_train-kit.blend
Normal file
BIN
asset/kenney_train-kit/kenney_train-kit.blend
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,13 +2,13 @@ import os
|
|||||||
import bpy
|
import bpy
|
||||||
# put the location to the folder where the objs are located here in this fashion
|
# 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
|
# 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
|
# get list of all files in directory
|
||||||
file_list = sorted(os.listdir(path_to_obj_dir))
|
file_list = sorted(os.listdir(path_to_obj_dir))
|
||||||
print (file_list)
|
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')]
|
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
|
# loop through the strings in obj_list and add the files to the scene
|
||||||
for item in obj_list:
|
for item in obj_list:
|
||||||
|
Loading…
Reference in New Issue
Block a user