일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- TensorFlow #Python #pip
- x99 itx/ac
- k6 #피코프레소
- Dell #Latitude #BIOS
- 다이슨 #배터리
- Xeon #E5-2680
- Oh My Zsh #macOS
- Arduino #Wall Plotter
- centos7 #yum update #/boot
- fat32 #rufus
- Tarantula #3D 프린터
- ITOP40
- Java #MacBook #macOS
- cycloidal #rv reducer
- ESP32 #Arduino
- VMware #Shared Folder
- Octave #homebrew #macOS
- Laptop #CPUID
- Arduino #PlatformIO #macOS
- 피코프레소 #ITOP40
- egpu #aorus gaming box #gtx1070 #tb3
- macro lens #EF #FD
- Callaway #Mavrik #Epic Flash
- 매크로렌즈 #리버스링
- VirtualBox #VMware
- CM-EF-NEX
- Linux #VirtualBox
- XTU #Virtual Machine System
- VNC #Firewall #CenOS7 #VMware
- razer #deathadder #viper #g102
- Today
- Total
얕고 넓게
[Robot] 블렌더 스크립트 본문
unit 변경
원 추가 (무조건 m 단위 같음)
전체 선택
삭제
bpy.context.scene.unit_settings.length_unit = 'MILLIMETERS'
bpy.ops.mesh.primitive_circle_add(radius=0.001, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1))
bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.mesh.delete(type='VERT')
bpy.ops.mesh.select_all(action='SELECT')
r=10mm, r=5mm 원 추가
채우기 (ALT f)
bpy.ops.mesh.fill()
extrude z 100
bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"use_normal_flip":False, "use_dissolve_ortho_edges":False, "mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0), "orient_type":'GLOBAL', "orient_matrix":((0, 0, 0), (0, 0, 0), (0, 0, 0)), "orient_matrix_type":'GLOBAL', "constraint_axis":(False, False, False), "mirror":False, "use_proportional_edit":False, "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "use_proportional_connected":False, "use_proportional_projected":False, "snap":False, "snap_elements":{'INCREMENT'}, "use_snap_project":False, "snap_target":'CLOSEST', "use_snap_self":True, "use_snap_edit":True, "use_snap_nonedit":True, "use_snap_selectable":False, "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "cursor_transform":False, "texture_space":False, "remove_on_cancel":False, "use_duplicated_keyframes":False, "view2d_edge_pan":False, "release_confirm":False, "use_accurate":False, "alt_navigation":False, "use_automerge_and_split":False})
bpy.ops.mesh.edge_face_add()
bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"use_normal_flip":False, "use_dissolve_ortho_edges":False, "mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0.1), "orient_type":'NORMAL', "orient_matrix":((-0.921635, 0.388057, 0), (0.388057, 0.921635, 0), (0, 0, -1)), "orient_matrix_type":'NORMAL', "constraint_axis":(False, False, True), "mirror":False, "use_proportional_edit":False, "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "use_proportional_connected":False, "use_proportional_projected":False, "snap":False, "snap_elements":{'INCREMENT'}, "use_snap_project":False, "snap_target":'CLOSEST', "use_snap_self":True, "use_snap_edit":True, "use_snap_nonedit":True, "use_snap_selectable":False, "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "cursor_transform":False, "texture_space":False, "remove_on_cancel":False, "use_duplicated_keyframes":False, "view2d_edge_pan":False, "release_confirm":False, "use_accurate":False, "alt_navigation":True, "use_automerge_and_split":False})
1개 virtex 선택 후 연결된 전체 virtex 선택: l
bpy.ops.mesh.select_linked_pick(deselect=False, delimit=set(), object_index=0, index=54)
x 방향으로 10mm 이동: g, x, 10
bpy.ops.transform.translate(value=(0.01, 0, 0), orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', constraint_axis=(True, False, False), mirror=True, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False, snap=False, snap_elements={'INCREMENT'}, use_snap_project=False, snap_target='CLOSEST', use_snap_self=True, use_snap_edit=True, use_snap_nonedit=True, use_snap_selectable=False, alt_navigation=True)
bpy.ops.transform.translate(value=(-0.1, 0, 0)) 적용됨
'IT > Robot' 카테고리의 다른 글
[Robot] Cycloidal Gear by Fusion 360 (0) | 2024.02.05 |
---|---|
[Robot] Cycloidal by OpenSCAD: polygon & list (0) | 2024.02.04 |
[Robot] Planetary Gear by Blender (1) | 2024.02.01 |
[Robot] Cycloidal Gear (OpenSCAD) (1) | 2024.02.01 |
[Robot] Bevel Gear (0) | 2024.01.31 |