forked from LGDG/ExampleProject
This commit is contained in:
parent
a6915e68b4
commit
8e9bfea1ec
|
@ -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")
|
Loading…
Reference in New Issue