generated from stilobique/BlenderTemplate
Update export, to be more clear and readable.
This commit is contained in:
@@ -27,7 +27,6 @@ Requiert your blend file are write on your hard-drive."""
|
|||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
bpy.ops.object.select_all(action='DESELECT')
|
bpy.ops.object.select_all(action='DESELECT')
|
||||||
print(f'[Pipeline] Start to export the building props.')
|
|
||||||
|
|
||||||
# Make a check if the file are saved on the disk
|
# Make a check if the file are saved on the disk
|
||||||
if not bpy.data.is_saved:
|
if not bpy.data.is_saved:
|
||||||
@@ -42,8 +41,6 @@ Requiert your blend file are write on your hard-drive."""
|
|||||||
self.report({'WARNING'}, 'No children collection, nothing can be exported.')
|
self.report({'WARNING'}, 'No children collection, nothing can be exported.')
|
||||||
return {'CANCELLED'}
|
return {'CANCELLED'}
|
||||||
|
|
||||||
if not len(self.coll_layout.collection_children):
|
|
||||||
|
|
||||||
for coll in self.coll_layout.children:
|
for coll in self.coll_layout.children:
|
||||||
print(f'[Pipeline] Update "{coll.name}" mesh')
|
print(f'[Pipeline] Update "{coll.name}" mesh')
|
||||||
child = bpy.data.collections.get(coll.name)
|
child = bpy.data.collections.get(coll.name)
|
||||||
@@ -115,9 +112,6 @@ Requiert your blend file are write on your hard-drive."""
|
|||||||
|
|
||||||
self.set_instance_type()
|
self.set_instance_type()
|
||||||
|
|
||||||
# for coll in coll_layout.children:
|
|
||||||
# print(f'[Pipeline] Check {coll}. Item type {type(coll)}')
|
|
||||||
|
|
||||||
self.report({'INFO'}, 'Placeholder exported')
|
self.report({'INFO'}, 'Placeholder exported')
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user