From 8e9bfea1ecf0cf75b688dcc26a7e871e7c1c5a1a Mon Sep 17 00:00:00 2001 From: me4tw Date: Thu, 14 Mar 2024 22:50:47 +1000 Subject: [PATCH] ok --- remesh.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 remesh.txt 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")