blender 3.4.1 python 3x3 の平面中心に 1x1の 穴 書いて
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad
twitter 新着検索 Dürer & 測距儀
aaa
bbb
ccc twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad
old page いいい
new page いいい
目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい
Blenderで1x1の穴を含む平面を作成するには、以下の手順を実行します。
Blenderを起動し、3Dビューポートで新しいプロジェクトを作成します。
「Shift + A」キーを押して、メッシュオブジェクトを追加するメニューを開きます。
「Mesh」>「Plane」を選択して、平面を追加します。
平面オブジェクトを選択し、エディットモードに切り替えます。
「1」キーを押して、平面を選択します。
「E」キーを押して、選択された面を上下左右に拡大します。
「S」キーを押して、拡大した面を縮小します。
「Shift + S」キーを押して、カーソルを中心に移動します。
「Ctrl + R」キーを押して、平面に垂直な方向にスライスカットを作成します。
「左クリック」でスライスカットを適用します。
「A」キーを押して、すべての面を選択します。
「X」キーを押して、面を削除します。
平面の中心に1x1の穴が残ります。
Pythonスクリプトを使用して同じことを行うには、以下のコードを使用できます。
import bpy
# Add a plane mesh object
bpy.ops.mesh.primitive_plane_add()
# Switch to edit mode
bpy.ops.object.mode_set(mode='EDIT')
# Select the face of the plane
bpy.ops.mesh.select_all(action='DESELECT')
bpy.ops.mesh.select_mode(type='FACE')
bpy.ops.mesh.select_random()
bpy.ops.mesh.select_linked()
# Extrude and scale the selected face
bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"mirror":False}, TRANSFORM_OT_translate={"value":(0, 0, 0.1)})
bpy.ops.transform.resize(value=(0.5, 0.5, 0.5))
# Move the cursor to the center of the plane
bpy.ops.view3d.snap_cursor_to_center()
# Create a vertical slice cut
bpy.ops.mesh.loopcut_slide(MESH_OT_loopcut={"number_cuts":1, "smoothness":0, "falloff":'INVERSE_SQUARE', "object_index":0, "edge_index":0, "mesh_select_mode_init":(True, False, False)}, TRANSFORM_OT_edge_slide={"value":0})
# Apply the slice cut
bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.mesh.subdivide(number_cuts=1)
# Delete the faces to create the hole
bpy.ops.mesh.select_all(action='DESELECT')
bpy.ops.mesh.select_mode(type='FACE')
bpy.ops.mesh.select_circle(radius=0.5, x=0, y=0)
bpy.ops.mesh.delete(type='FACE')
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad
twitter 新着検索 Dürer & 測距儀
aaa
bbb
ccc twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad
old page いいい
new page いいい
目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい