enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
243 stars 33 forks source link

LIVENODING 1180 / Scripting Voxel Remesher #592

Open enzyme69 opened 5 years ago

enzyme69 commented 5 years ago

import bpy

bpy.ops.object.duplicate()
bpy.ops.object.join()
bpy.ops.sculpt.sculptmode_toggle()

# context incorrect error
bpy.context.object.data.remesh_voxel_size = 0.6
bpy.context.object.data.remesh_smooth_normals = True

#bpy.context.object.data.remesh_smooth_normals = False
bpy.ops.object.voxel_remesh()
bpy.ops.sculpt.sculptmode_toggle()
bpy.context.selected_objects[0].name = "voxel_remeshed"
#bpy.ops.object.select_all(action='DESELECT')
enzyme69 commented 5 years ago

shapekey_mdd_004.blend.zip

Screen Shot 2019-08-19 at 2 26 02 pm Screen Shot 2019-08-19 at 2 23 04 pm Screen Shot 2019-08-19 at 2 22 58 pm