diff --git a/remesh.txt b/remesh.txt new file mode 100644 index 0000000..2690598 --- /dev/null +++ b/remesh.txt @@ -0,0 +1,23 @@ +import bpy +for obj in bpy.data.objects: + if obj.type == 'MESH': + bpy.context.view_layer.objects.active = obj + #bpy.ops.object.modifier_add(type='REMESH') + + bpy.context.object.data.remesh_mode='VOXEL' + bpy.context.object.data.use_remesh_fix_poles=True + bpy.context.object.data.remesh_voxel_size = 0.601 + bpy.context.object.data.use_remesh_preserve_volume = True + bpy.context.object.data.use_remesh_preserve_sculpt_face_sets = True + bpy.context.object.data.use_remesh_preserve_paint_mask = True + bpy.context.object.data.use_remesh_preserve_vertex_colors = True + bpy.ops.object.voxel_remesh() + + + # bpy.context.object.modifiers["Remesh"].mode = 'VOXEL' + # bpy.context.object.modifiers["Remesh"].voxel_size = 0.6 + # bpy.context.object.modifiers["Remesh"].adaptivity = 0.1 + + + + # bpy.ops.object.modifier_apply(modifier="Remesh")