import bpy#http://wiki.blender.org/index.php/Doc:Tutorials/Animation/BSoD/Character_Animationbpy.ops.object.select_all(action='TOGGLE')bpy.ops.object.select_all(action='TOGGLE')bpy.ops.object.delete(use_global=False)bpy.ops.mesh.primitive_plane_add(radius=1, view_align=False, enter_editmode=False, location=(4.84111, 11.1991, 0.193558), layers=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))bpy.ops.object.location_clear()bpy.ops.object.editmode_toggle()bpy.ops.mesh.subdivide(smoothness=0)#select left vertices 0 1 5 def selectVertices(vertList): bpy.ops.mesh.select_all(action='DESELECT') bpy.ops.object.mode_set(mode='OBJECT') obj = bpy.context.active_object.data.vertices for i in vertList: obj[i].select = True bpy.ops.object.editmode_toggle() #edit mode! selectVertices([0,1,5])bpy.ops.mesh.delete(type='VERT')
#nodig? JA! modifiers in object mode!bpy.ops.object.editmode_toggle()mirror = bpy.ops.object.modifier_add(type='MIRROR')m = bpy.context.active_object.modifiers['Mirror']m.use_y = True
MARK de link laat een jpg zien, alhoewel het een gif is!Zelfde en jpg maar kunstmatig door gif vervangen: DAT is het dus niet, dus de upload wordt foutief gedaan door de forum software ??!!!een tweede keer: lukt ook niet.
In het verleden heb ik me ooit verdiept in programmeren het verloor mijn interesse door de saaiheid ervan als ik heden ten dagen zie hoe visueel en programmeren tot elkaar is gekomen vind ik je stukjes mooi en lees ze terug zodra ik me hier in ga verdiepen, er is al zoveel visueel omgezet en dat leer ik eerst Keep it up!
import bpybpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0), "constraint_axis":(False, False, True), "constraint_orientation":'NORMAL', "mirror":False, "proportional":'DISABLED', "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "texture_space":False, "remove_on_cancel":False, "release_confirm":False})bpy.ops.transform.resize(value=(0.879117, 0.879117, 0.879117), constraint_axis=(False, False, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1)bpy.ops.mesh.looptools_circle(custom_radius=False, fit='best', flatten=True, influence=100, radius=1, regular=True)bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0), "constraint_axis":(False, False, True), "constraint_orientation":'NORMAL', "mirror":False, "proportional":'DISABLED', "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "texture_space":False, "remove_on_cancel":False, "release_confirm":False})bpy.ops.transform.resize(value=(0.872233, 0.872233, 0.872233), constraint_axis=(False, False, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1)bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0), "constraint_axis":(False, False, True), "constraint_orientation":'NORMAL', "mirror":False, "proportional":'DISABLED', "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "texture_space":False, "remove_on_cancel":False, "release_confirm":False})bpy.ops.transform.translate(value=(0, 0, -0.0844766), constraint_axis=(False, False, True), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1)bpy.ops.mesh.delete(type='FACE')