1
0
Fork 0
This commit is contained in:
me4tw 2024-03-14 22:50:47 +10:00
parent a6915e68b4
commit 8e9bfea1ec
1 changed files with 23 additions and 0 deletions

23
remesh.txt Normal file
View File

@ -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")