import bpy
# Parameters for the square
size = 10
y_pos = 10
# Create the square
vertices = [
(-size/2, y_pos, -size/2),
(-size/2, y_pos, size/2),
(size/2, y_pos, size/2),
(size/2, y_pos, -size/2)
]
faces = [(0, 1, 2, 3)]
# Create the mesh
mesh = bpy.data.meshes.new(name="SquareMesh")
mesh.from_pydata(vertices, [], faces)
# Create the object and link it to the scene
obj = bpy.data.objects.new("Square", mesh)
bpy.context.scene.collection.objects.link(obj)
import bpy
# Parameters for the square
size = 10
y_pos = 5
# Create the square
vertices = [
(-size/2, y_pos, -size/2),
(-size/2, y_pos, size/2),
(size/2, y_pos, size/2),
(size/2, y_pos, -size/2)
]
faces = [(0, 1, 2, 3)]
# Create the mesh
mesh = bpy.data.meshes.new(name="SquareMesh")
mesh.from_pydata(vertices, [], faces)
# Create the object and link it to the scene
obj = bpy.data.objects.new("Square", mesh)
bpy.context.scene.collection.objects.link(obj)
[Blender]オブジェクトに画像テクスチャを貼り付ける方法(画像あり)
1
2 UV to Vector
3
Vector to Vector
【Blender】テクスチャの貼り方をしっかりとマスターしよう!
https://original-game.com/blender-how-to-apply-a-texture/
【blender 初心者】画像テクスチャを貼り付けて葉っぱを作る
https://www.youtube.com/watch?v=5BFo_GtmIGU
ああ