2023年3月22日水曜日

円周に 球体 等間隔 配置

aaa






import bpy
import math

# オブジェクトを作成する関数
def create_sphere(location, radius):
    bpy.ops.mesh.primitive_uv_sphere_add(location=location, radius=radius)

# 16個の球体を作成する
for i in range(16):
    angle = 2 * i * math.pi / 16
    x = 30 * math.cos(angle)
    y = 30 * math.sin(angle)
    z = 0
    location = (x, y, z)
    radius = 1
    create_sphere(location, radius)











# 16個の球体を10秒間で座標(0, 0, 0)に移動するBlender Pythonスクリプト


import bpy
import math

# オブジェクトを作成する関数
def create_sphere(location, radius):
    bpy.ops.mesh.primitive_uv_sphere_add(location=location, radius=radius)

# アニメーションを設定する関数
def set_animation(obj, start_frame, end_frame, target_location):
    obj.keyframe_insert(data_path="location", frame=start_frame)
    obj.location = target_location
    obj.keyframe_insert(data_path="location", frame=end_frame)

# 16個の球体を作成する
for i in range(16):
    angle = 2 * i * math.pi / 16
    x = 30 * math.cos(angle)
    y = 30 * math.sin(angle)
    z = 0
    location = (x, y, z)
    radius = 1
    create_sphere(location, radius)
    obj = bpy.context.active_object
    set_animation(obj, 1, 250, (0, 0, 0))



# 座標(0, 0, 0)から円周上に16個の球体を移動させるBlender Pythonスクリプト

import bpy
import math

# オブジェクトを作成する関数
def create_sphere(location, radius):
    bpy.ops.mesh.primitive_uv_sphere_add(location=location, radius=radius)

# アニメーションを設定する関数
def set_animation(obj, start_frame, end_frame, target_location):
    obj.keyframe_insert(data_path="location", frame=start_frame)
    obj.location = target_location
    obj.keyframe_insert(data_path="location", frame=end_frame)

# 16個の球体を作成する
for i in range(16):
    angle = 2 * i * math.pi / 16
    x = 30 * math.cos(angle)
    y = 30 * math.sin(angle)
    z = 0
    location = (0, 0, 0)
    radius = 1
    create_sphere(location, radius)
    obj = bpy.context.active_object
    set_animation(obj, 1, 250, (x, y, z))

















このスクリプトでは、16個の球体を作成し、各球体に対してアニメーションを設定しています。create_sphere関数は、以前の例と同様に球体を作成するための関数です。

set_animation関数は、オブジェクトのアニメーションを設定するための関数です。この関数は、オブジェクト、アニメーションの開始フレーム、終了フレーム、目標座標を引数として受け取ります。この関数では、最初にオブジェクトの現在位置をキーフレームに登録し、その後に目標座標に移動して再度キーフレームに登録します。

最後に、16個の球体に対して、それぞれアニメーションを設定しています。各オブジェクトは、アクティブオブジェクトとしてコンテキストから取得し、set_animation関数を呼び出すことでアニメーションを設定しています。アニメーションの開始フレームは1、終了フレームは250としています。また、目標座標は円周上の座標として計算し、location変数に代入しています。
















bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

コレクションと オブジェクト

aaa












import bpy

# 新しいコレクションを作成する
my_collection_name = "円板3軸"
col = bpy.data.collections.new(my_collection_name)
bpy.context.scene.collection.children.link(col)

# 円板を作成する
my_object_name = "円板 Z=0"
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object
obj.name = my_object_name

# コレクションにオブジェクトをリンクする
col.objects.link(obj)

# 円板をZ=0平面に移動する
obj.location[2] = 0.0









元のコレクションからオブジェクトを削除するには、以下のスクリプトを使用できます。


import bpy

# 元のコレクションと新しいコレクションの名前
old_collection_name = "元のコレクション"
new_collection_name = "新しいコレクション"

# 新しいコレクションに円板を移動する(前回の回答で説明したスクリプト)
col = bpy.data.collections[new_collection_name]
obj = bpy.data.objects["円板 Z=0"]
col.objects.link(obj)
obj.location[2] = 0.0

# 元のコレクションから円板を削除する
old_col = bpy.data.collections[old_collection_name]
old_col.objects.unlink(obj)






























bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

2023年3月21日火曜日

円板の作り方 練習

aaa






# 合体スクリプト 円板3軸  にジャンプするにはこちらをクリックしてください







import bpy
import math

my_collection_name = "円板3軸"

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





# z=0 平面の 円板 x軸 0度回転 指示なし


import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける
my_object_name = "円板 Z=0"
obj.name = my_object_name




# z=0 平面の 円板 x軸 0度回転 


import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation
my_object_name = "円板 Y=0 rx0"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = (math.radians(90.0), 0.0, 0.0)
obj.location = (0.0, 0.0, 0.0)








# Y=0 平面の 円板 x軸 90度回転 


import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation 
my_object_name = "円板 Y=0 rx90"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = (math.radians(90.0), 0.0, 0.0)
obj.location = (0.0, 0.0, 0.0)




# X=0 平面の 円板 y軸 90度回転 
import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation 
my_object_name = "円板 X=0 ry90"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = ( 0.0, math.radians(90.0), 0.0)
obj.location = (0.0, 0.0, 0.0)





<div id="jump">ここに飛びました!</div>
あああああああああああああああああああああああああああああああああああ
ああああああああああああああああああああああああああああああああああ

ここに飛びました!



# 合体 円板3軸


import bpy
import math

my_collection_name = "円板3軸"

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



# z=0 平面の 円板 x軸 0度回転 
import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation
my_object_name = "円板 Y=0 rx0"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = (math.radians(90.0), 0.0, 0.0)
obj.location = (0.0, 0.0, 0.0)


# Y=0 平面の 円板 x軸 90度回転 
import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation 
my_object_name = "円板 Y=0 rx90"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = (math.radians(90.0), 0.0, 0.0)
obj.location = (0.0, 0.0, 0.0)



# X=0 平面の 円板 y軸 90度回転 
import bpy
import math

# Create a circle
bpy.ops.mesh.primitive_circle_add(radius=30.0, fill_type='TRIFAN', location=(0.0, 0.0, 0.0))
obj = bpy.context.object

# オブジェクトに名前を付ける rotation 
my_object_name = "円板 X=0 ry90"
obj.name = my_object_name

# Set rotation and location for the circle
obj.rotation_euler = ( 0.0, math.radians(90.0), 0.0)
obj.location = (0.0, 0.0, 0.0)


動く円錐 回転の円錐 動く円錐

aaa
2023年3月21日火曜日
円柱  回転 3軸 骨格円柱
https://timeblender.blogspot.com/2023/03/blog-post_69.html
















x軸 回転する 円錐


import bpy
import math

# Create a cone
bpy.ops.mesh.primitive_cone_add(radius1=60.0, radius2=0.0, depth=240.0, location=(0.0, 0.0, 0.0))
cone = bpy.context.object

# Set rotation and location for the cone
cone.rotation_euler = (math.radians(90.0), 0.0, 0.0)
cone.location = (0.0, 0.0, 0.0)

# Rotate the cone around the x-axis
rot_angle = 0.0
rot_step = math.radians(5.0)
for i in range(72):
    bpy.context.scene.frame_set(i+1)
    rot_angle += rot_step
    cone.rotation_euler = (rot_angle, 0.0, 0.0)
    cone.keyframe_insert(data_path="rotation_euler", index=-1)
    
# Keep the cone rotated at the final position
bpy.context.scene.frame_set(73)
cone.keyframe_insert(data_path="rotation_euler", index=-1)
end_frame = 73

# Set the waiting period
wait_frames = 40
end_frame += wait_frames

# Set the current frame to the end_frame
current_frame = end_frame

# Keep the cone at the final position and repeat the rotation animation
repeat_frames = end_frame + 72
while True:
    current_frame += 1
    
    # Insert a keyframe at the current frame for the cone's rotation
    bpy.context.scene.frame_set(current_frame)
    rot_angle += rot_step
    cone.rotation_euler = (rot_angle, 0.0, 0.0)
    cone.keyframe_insert(data_path="rotation_euler", index=-1)
    
    # Stop the loop if current_frame reaches repeat_frames
    if current_frame == repeat_frames:
        break









y軸方向 x軸回転の円錐


import bpy
import math

# Create a cone
bpy.ops.mesh.primitive_cone_add(radius1=0.0, radius2=60.0, depth=240.0, location=(0.0, 0.0, 0.0))
cone = bpy.context.object

# Set rotation and location for the cone
cone.rotation_euler = (math.radians(90.0), 0.0, 0.0)  # Rotate 90 degrees around the x-axis
cone.location = (120.0, 0.0, 0.0)  # Set the location of the base of the cone to (120, 0, 0)

# Set the name for the cone object
cone.name = "cone_y方向 x軸回転"






import bpy
import math

# Create a cone
bpy.ops.mesh.primitive_cone_add(radius1=0.0, radius2=60.0, depth=240.0, location=(0.0, 0.0, 0.0))
cone = bpy.context.object

# Set rotation and location for the cone
cone.rotation_euler = ( 0.0,math.radians(270.0), 0.0, )  # Rotate 270 degrees around the y-axis
cone.location = (0.0, 0.0, 0.0)  # Set the location of the base of the cone to (0, 0, 0)

# Set the name for the cone object
cone.name = "3軸 cone_x方向 y軸回転"









動く円錐


import bpy
import math

# Create a cone
bpy.ops.mesh.primitive_cone_add(radius1=0.0, radius2=60.0, depth=240.0, location=(0.0, 0.0, 0.0))
cone = bpy.context.object

# Set rotation and location for the cone
cone.rotation_euler = ( 0.0,math.radians(270.0), 0.0, )  # Rotate 270 degrees around the y-axis
cone.location = (0.0, 0.0, 0.0)  # Set the location of the base of the cone to (0, 0, 0)

# Set the name for the cone object
cone.name = "3軸 cone_x方向 y軸回転"

# Set start and end frames
start_frame = 1
end_frame = start_frame + 200

# Define the start and end positions
start_pos = (-300.0, 0.0, 0.0)
end_pos = (300.0, 0.0, 0.0)

# Calculate the distance between start_pos and end_pos
distance = abs(math.sqrt((end_pos[0]-start_pos[0])**2 + (end_pos[1]-start_pos[1])**2 + (end_pos[2]-start_pos[2])**2))

# Set the speed multiplier
vvv_velocity = 1.0

# Calculate the velocity required to move the cube at a constant speed
velocity = distance / (end_frame - start_frame) * vvv_velocity

# Move the cube from start_pos to end_pos at a constant speed
for i in range(start_frame, end_frame + 1):
    bpy.context.scene.frame_set(i)
    bpy.context.object.location = tuple(s + (e-s)*((i-start_frame)*velocity/distance) for s,e in zip(start_pos, end_pos))
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Stop the cube from moving after reaching the end position
bpy.context.scene.frame_set(end_frame)
bpy.context.object.keyframe_insert(data_path="location", index=-1)
bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Set the waiting period
wait_frames = 40
end_frame += wait_frames

# Set the current frame to the end_frame
current_frame = end_frame

# Keep the cube at the end position and repeat the animation
repeat_frames = end_frame + 200
while True:
    current_frame += 1
    
    # Insert a keyframe at the current frame for the cube's location and scale
    bpy.context.scene.frame_set(current_frame)
    bpy.context.object.location = end_pos
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)
    
    # Stop the loop if current_frame reaches repeat_frames
    if current_frame == repeat_frames:
        break





My_Camera = "3軸 cone_x方向 y軸回転"

# Create camera data
MyCam_data = bpy.data.cameras.new('My_Camera')

# Add a camera and set its position
cam = bpy.data.objects.new(My_Camera, MyCam_data)
bpy.context.scene.collection.objects.link(cam)
cam.location = (0.0, -30.0, 0.0)


# Add a track constraint to the camera to follow the sphere
track_constraint = cam.constraints.new(type='TRACK_TO')
track_constraint.target = bpy.context.object
track_constraint.track_axis








bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい


3軸に 正方形を合体させる

aaa

3軸に 球体を合体させる


円柱 回転 3軸






# Create a cube
bpy.ops.mesh.primitive_cube_add(size=120.0, location=(0.0, 0.0, 0.0))
cube = bpy.context.object

# Set rotation and location for the cube
cube.rotation_euler = (0.0, 0.0, 0.0)
cube.location = (0.0, 0.0, 0.0)


修正点は、bpy.ops.mesh.primitive_cube_add()メソッドを使用して、辺の長さ120の立方体を作成していることです。また、立方体の回転と位置を設定するために、cube.rotation_eulerとcube.locationを使用しています。








import bpy
import math


# Create a cube
bpy.ops.mesh.primitive_cube_add(size=120.0, location=(0.0, 0.0, 0.0))
cube = bpy.context.object

# Set rotation and location for the cube
cube.rotation_euler = (0.0, 0.0, 0.0)
cube.location = (0.0, 0.0, 0.0)

# Set name for the cube object
cube.name = "3軸 立方体"

# Set start and end frames
start_frame = 1
end_frame = start_frame + 200

# Define the start and end positions
start_pos = (-300.0, 0.0, 0.0)
end_pos = (300.0, 0.0, 0.0)

# Calculate the distance between start_pos and end_pos
distance = abs(math.sqrt((end_pos[0]-start_pos[0])**2 + (end_pos[1]-start_pos[1])**2 + (end_pos[2]-start_pos[2])**2))

# Set the speed multiplier
vvv_velocity = 1.0

# Calculate the velocity required to move the cube at a constant speed
velocity = distance / (end_frame - start_frame) * vvv_velocity

# Move the cube from start_pos to end_pos at a constant speed
for i in range(start_frame, end_frame + 1):
    bpy.context.scene.frame_set(i)
    bpy.context.object.location = tuple(s + (e-s)*((i-start_frame)*velocity/distance) for s,e in zip(start_pos, end_pos))
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Stop the cube from moving after reaching the end position
bpy.context.scene.frame_set(end_frame)
bpy.context.object.keyframe_insert(data_path="location", index=-1)
bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Set the waiting period
wait_frames = 40
end_frame += wait_frames

# Set the current frame to the end_frame
current_frame = end_frame

# Keep the cube at the end position and repeat the animation
repeat_frames = end_frame + 200
while True:
    current_frame += 1
    
    # Insert a keyframe at the current frame for the cube's location and scale
    bpy.context.scene.frame_set(current_frame)
    bpy.context.object.location = end_pos
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)
    
    # Stop the loop if current_frame reaches repeat_frames
    if current_frame == repeat_frames:
        break





My_Camera = "3軸 立方体"

# Create camera data
MyCam_data = bpy.data.cameras.new('My_Camera')

# Add a camera and set its position
cam = bpy.data.objects.new(My_Camera, MyCam_data)
bpy.context.scene.collection.objects.link(cam)
cam.location = (0.0, -30.0, 0.0)


# Add a track constraint to the camera to follow the sphere
track_constraint = cam.constraints.new(type='TRACK_TO')
track_constraint.target = bpy.context.object
track_constraint.track_axis










import bpy
import math


my_collection_name = "3軸の外装"

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





















bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

3軸に 球体を合体させる

aaa











# Create a sphere
bpy.ops.mesh.primitive_uv_sphere_add(radius=60.0, location=(0.0, 0.0, 0.0))
sphere = bpy.context.object

# Set rotation and location for the sphere
sphere.rotation_euler = (0.0, 0.0, 0.0)
sphere.location = (0.0, 0.0, 0.0)









import bpy
import math

# Create a sphere
bpy.ops.mesh.primitive_uv_sphere_add(radius=60.0, location=(0.0, 0.0, 0.0))
sphere = bpy.context.object

# Set rotation and location for the sphere
sphere.rotation_euler = (0.0, 0.0, 0.0)
sphere.location = (0.0, 0.0, 0.0)


# オブジェクトに名前を付ける
sphere.name = "3軸 球体"




# Set start and end frames
start_frame = 1
end_frame = start_frame + 200

# Define the start and end positions
start_pos = (-300.0, 0.0, 0.0)
end_pos = (300.0, 0.0, 0.0)

# Calculate the distance between start_pos and end_pos
distance = abs(math.sqrt((end_pos[0]-start_pos[0])**2 + (end_pos[1]-start_pos[1])**2 + (end_pos[2]-start_pos[2])**2))

# Set the speed multiplier
vvv_velocity = 1.0

# Calculate the velocity required to move the sphere at a constant speed
velocity = distance / (end_frame - start_frame) * vvv_velocity

# Move the sphere and cylinder from start_pos to end_pos at a constant speed
for i in range(start_frame, end_frame + 1):
    bpy.context.scene.frame_set(i)
    bpy.context.object.location = tuple(s + (e-s)*((i-start_frame)*velocity/distance) for s,e in zip(start_pos, end_pos))
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Stop the sphere and cylinder from moving after reaching the end position
bpy.context.scene.frame_set(end_frame)
bpy.context.object.keyframe_insert(data_path="location", index=-1)
bpy.context.object.keyframe_insert(data_path="scale", index=-1)

# Set the waiting period
wait_frames = 40
end_frame += wait_frames

# Set the current frame to the end_frame
current_frame = end_frame

# Keep the sphere and cylinder at the end position and repeat the animation
repeat_frames = end_frame + 200
while True:
    current_frame += 1
    
    # Insert a keyframe at the current frame for the sphere and cylinder's location and scale
    bpy.context.scene.frame_set(current_frame)
    bpy.context.object.location = end_pos
    bpy.context.object.keyframe_insert(data_path="location", index=-1)
    bpy.context.object.keyframe_insert(data_path="scale", index=-1)
    
    # Stop the loop if current_frame reaches repeat_frames
    if current_frame == repeat_frames:
        break




My_Camera = "3軸 球体"

# Create camera data
MyCam_data = bpy.data.cameras.new('My_Camera')

# Add a camera and set its position
cam = bpy.data.objects.new(My_Camera, MyCam_data)
bpy.context.scene.collection.objects.link(cam)
cam.location = (0.0, -30.0, 0.0)


# Add a track constraint to the camera to follow the sphere
track_constraint = cam.constraints.new(type='TRACK_TO')
track_constraint.target = bpy.context.object
track_constraint.track_axis




























bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

カメラ

aaa





My_Camera = "Zaxis"

# Create camera data
MyCam_data = bpy.data.cameras.new('My_Camera')

# Add a camera and set its position
cam = bpy.data.objects.new(My_Camera, MyCam_data)
bpy.context.scene.collection.objects.link(cam)
cam.location = (0.0, -30.0, 0.0)


# Add a track constraint to the camera to follow the sphere
track_constraint = cam.constraints.new(type='TRACK_TO')
track_constraint.target = bpy.context.object
track_constraint.track_axis

# Add the camera to the collection
my_collection = bpy.data.collections.get(my_collection_name)
my_collection.objects.link(cam)
















# Add a camera and set its position
cam_data = bpy.data.cameras.new('Zaxis_Camera')
cam = bpy.data.objects.new('Zaxis_Camera', cam_data)
bpy.context.scene.collection.objects.link(cam)
cam.location = (0.0, -30.0, 0.0)
修正点は、bpy.data.objects.new()の引数でカメラの名前を指定していなかったことです。このため、カメラの名前が指定されていなかったため、エラーが発生しました。修正したコードでは、bpy.data.objects.new('Zaxis_Camera', cam_data)として、カメラの名前を指定しています。









以下のように修正してください。

php
# Add a camera and set its position cam_data = bpy.data.cameras.new('Zaxis_Camera') cam = bpy.data.objects.new('Zaxis_Camera', cam_data) bpy.context.scene.collection.objects.link(cam) cam.location = (0.0, -30.0, 0.0)

修正点は、bpy.data.objects.new()の引数でカメラの名前を指定していなかったことです。このため、カメラの名前が指定されていなかったため、エラーが発生しました。修正したコードでは、bpy.data.objects.new('Zaxis_Camera', cam_data)として、カメラの名前を指定しています。



























bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

202304220 thu 1333

aaa 下書き Dürer & 測距儀2022c085 連番 014 正三角形 6つの詳細 aaa ティコ・ブラーエ氏 2023年04月19日 下書き Dürer & 測距儀2022c085 連番 014 正三角形 6つの詳細  ゴルフ場 ...