こちらはBlenderの「Add」機能についての記事となっております。
目次
Add Function (Shift + A)
Add Mesh
UV Sphere
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [UV Sphere]
Script:bpy.ops.mesh.primitive_uv_sphere_add()
bpy.ops.mesh.primitive_uv_sphere_add(
segments=32,
ring_count=16,
radius=1.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshUVSphere-800x800.jpg)
segments | int [default: 32] | int [default: 32] |
ring_count | int [default: 16] | 分割数(横) |
radius | float [default: 1.0] | 球の半径 |
Ico Sphere
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Ico Sphere]
Script:bpy.ops.mesh.primitive_ico_sphere_add()
bpy.ops.mesh.primitive_ico_sphere_add(
subdivisions=2,
radius=1.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshIcoSphere-800x800.jpg)
Cube
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Cube]
Script:bpy.ops.mesh.primitive_cube_add()
bpy.ops.mesh.primitive_cube_add(
size=2.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshCube-800x800.jpg)
Cylinder
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Cylinder]
Script:bpy.ops.mesh.primitive_cylinder_add()
bpy.ops.mesh.primitive_cylinder_add(
vertices=32,
radius=1.0,
depth=2.0,
end_fill_type='NGON',
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshCylinder-800x800.jpg)
Cone
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Cone]
Script:bpy.ops.mesh.primitive_cone_add()
bpy.ops.mesh.primitive_cone_add(
vertices=32,
radius1=1.0,
radius2=0.0,
depth=2.0,
end_fill_type='NGON',
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshCone-800x800.jpg)
Torus
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Torus]
Script:bpy.ops.mesh.primitive_torus_add()
bpy.ops.mesh.primitive_torus_add(
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
major_segments=48,
minor_segments=12,
mode='MAJOR_MINOR',
major_radius=1.0,
minor_radius=0.25,
abso_major_rad=1.25,
abso_minor_rad=0.75,
generate_uvs=True
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshTorus-800x800.jpg)
Plane
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Plane]
Script:bpy.ops.mesh.primitive_plane_add()
bpy.ops.mesh.primitive_plane_add(
size=2.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshPlane-800x800.jpg)
Circle
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Circle]
Script:bpy.ops.mesh.primitive_circle_add()
bpy.ops.mesh.primitive_circle_add(
vertices=32,
radius=1.0,
fill_type='NOTHING',
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshCircle-800x800.jpg)
Grid
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Grid]
Script:bpy.ops.mesh.primitive_grid_add()
bpy.ops.mesh.primitive_grid_add(
x_subdivisions=10,
y_subdivisions=10,
size=2.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshGrid-800x800.jpg)
Monkey
Manual:[3D Viewport] >> [Add] >> [Mesh] >> [Monkey]
Script:bpy.ops.mesh.primitive_monkey_add()
bpy.ops.mesh.primitive_monkey_add(
size=2.0,
calc_uvs=True,
enter_editmode=False,
align='WORLD',
location=(0.0, 0.0, 0.0),
rotation=(0.0, 0.0, 0.0),
scale=(0.0, 0.0, 0.0)
)
![](https://yuni-wiki.com/wp-content/uploads/2022/08/AddMeshSuzanne-800x800.jpg)
Work in Progress
Add Curve
Bezier Curve
Manual:[3D Viewport] >> [Add] >> [Curve] >> [Bezier]
Script:bpy.ops.curve.primitive_bezier_curve_add()
Bezier Circle
Manual:[3D Viewport] >> [Add] >> [Curve] >> [Circle]
Script:bpy.ops.curve.primitive_bezier_circle_add()
Nurbs Curve
Manual:[3D Viewport] >> [Add] >> [Curve] >> [Nurbs Curve]
Script:bpy.ops.curve.primitive_nurbs_curve_add()
Nurbs Circle
Manual:[3D Viewport] >> [Add] >> [Curve] >> [Nurbs Circle]
Script:bpy.ops.curve.primitive_nurbs_circle_add()
Nurbs Path
Manual:[3D Viewport] >> [Add] >> [Curve] >> [Path]
Script:bpy.ops.curve.primitive_nurbs_path_add()