Добавлен импорт иерархии объектов из FreeCAD в Blender

This commit is contained in:
brothermechanic 2023-04-06 11:33:50 +00:00 committed by Igor Brylyov
parent 5208577d86
commit b744fe30a0
6 changed files with 70 additions and 23 deletions

View file

@ -37,16 +37,6 @@ def freecad_asset_pipeline(fcstd_path,
cleanup_orphan_data()
obj_importer(fcstd_path, tessellation)
# apply scale to all objects
obs = bpy.context.selected_objects
for ob in obs:
bpy.ops.object.select_all(action='DESELECT')
ob.select_set(state=True)
bpy.context.view_layer.objects.active = ob
apply_transforms(ob, location=False, rotation=False, scale=True)
for ob in obs:
ob.select_set(state=True)
if json_path is not None:
for point in os.listdir(json_path):
if point.endswith('.json'):