forked from LGDG/ExampleProject
24 lines
947 B
Plaintext
24 lines
947 B
Plaintext
|
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")
|