2023年3月25日土曜日

追加の 線路の円錐 6つ

aaa














import bpy
import math


zion_collection_name = "Zion rail cone"

# コレクションを作成する
col = bpy.data.collections.new(zion_collection_name)
bpy.context.scene.collection.children.link(col)













import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = -90.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')







import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = -60.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')

















import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = 60.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')









import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = 90.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')










import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = -120.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')







import bpy
from math import radians


# 回転させる軸を選択する
zion_xyz = 'yana'



# 円錐を作成する
bpy.ops.mesh.primitive_cone_add(radius1=1, radius2=0, depth=2)


# オブジェクトに名前を付ける
bpy.context.object.name = "Zion rail Cone"


# 円錐の位置を変更する
bpy.context.object.location[0] = 120.0  # X座標
bpy.context.object.location[1] = 0.0  # Y座標
bpy.context.object.location[2] = 0.0  # Z座標



if zion_xyz == 'xana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(90)
    bpy.context.object.rotation_euler[2] = radians(0)
    # X軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 1
    
elif zion_xyz == 'yana':
    # 軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(90)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Y軸方向に伸ばす
    bpy.context.object.scale[0] = 3
    bpy.context.object.scale[1] = 3
    bpy.context.object.scale[2] = 3
    
elif zion_xyz == 'zana':
    # Z軸を中心に90度回転させる
    bpy.context.object.rotation_euler[0] = radians(0)
    bpy.context.object.rotation_euler[1] = radians(0)
    bpy.context.object.rotation_euler[2] = radians(0)
    # Z軸方向に伸ばす
    bpy.context.object.scale[0] = 1
    bpy.context.object.scale[1] = 1
    bpy.context.object.scale[2] = 10
    
else:
    print('Invalid rotation axis selected.')















































bbb

連番 007 未来光円錐 過去光円錐 円周中心からの球体放出

aaa 参考 2023年3月26日日曜日 製作 002b 未来光円錐の方向 線路レールで https://ia2023sha.blogspot.com/2023/03/002b.html import bpy import math zion_co...