2023-08-06から1日間の記事一覧

トーラスを 傾ける

# 傾ける前の トーラス√2 import bpyimport math # トーラス(Torus)オブジェクトを作成bpy.ops.mesh.primitive_torus_add( align='WORLD', location=(0, 0, 0), # トーラスの中心座標 (x, y, z) を (0, 0, 0) に設定 rotation=(0, 0, 0), # トーラスの回…

時空図の 斜め軌跡の 球体半径 0.2 と トーラス円周 コレクション

import bpy import math def create_sphere_at_position(position, color, name): # 半径を設定 radius = 0.15 # 球を作成(指定した座標に) bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=position) sphere = bpy.context.active_object …

事象情報 地図位置

import bpyimport math # 小数の桁数を指定decimal_places = 1 def create_plane_at_position(position, width, height, name, x, y, z): # 平面を作成(指定した座標に) bpy.ops.mesh.primitive_plane_add(size=1, location=position) plane = bpy.context…

補正軸  追加 球体と トーラス

# トーラス 半径1 マイナー半径 0.6 import bpyimport math # オブジェクトを作成bpy.ops.mesh.primitive_torus_add( align='WORLD', location=(0, 0, 0), rotation=(0, 0, 0), major_radius=1, minor_radius=0.06, major_segments=48, minor_segments=12) …

オブジェクト 全消し 20230806

import bpyimport math # 新しいシーンを作成bpy.ops.scene.new() # オブジェクトを作成bpy.ops.mesh.primitive_torus_add( align='WORLD', location=(0, 0, 0), rotation=(0, 0, 0), major_radius=1, minor_radius=0.06, major_segments=48, minor_segments…

配布 20230806 光時計 天井位置 床面位置

drive.google.com import bpyimport math def create_sphere_at_position(position, color, name): # 半径を設定 radius = 0.1 # 球を作成(指定した座標に) bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=position) sphere = bpy.context…

point 球体 xyz 軸 11個  グラデーション 

drive.google.com import bpy def create_sphere_at_position(position, color, name): # 半径を設定 radius = 0.1 # 球を作成(指定した座標に) bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=position) sphere = bpy.context.active_obj…

point 球体 半径 0.1 x軸 -5から+5 11個

point 球体 半径 0.1 x軸 -5から+5 11個 drive.google.com # point 球体 半径 0.1 x軸 -5から+5 11個 import bpy def create_sphere_at_position(position, color, name): # 半径を設定 radius = 0.1 # 球を作成(指定した座標に) bpy.ops.mesh…

テンプレート

あああ あ

# point 球体 半径0.1 を 作る

# コレクションを作る 重複の場合 作らない import bpy # List of collection names collection_names = [ "point 球体", "-1,0,0", "0,0,0", "+1,0,0" ] # Function to create a new collection if it doesn't exist def create_collection_if_not_exists(n…

円周から カメラアイへの 円錐 矢印

# コレクションを作る 重複の場合 作らない import bpy # List of collection namescollection_names = [ "t=-1", "t=0", "t=+1", "事象情報", "地図位置"] # Function to create a new collection if it doesn't existdef create_collection_if_not_exists(…

コレクションを作る aaaaaa

# コレクションを作る 重複の場合 作らない import bpy # List of collection names collection_names = [ "事象情報", "地図位置", "abcdefg", "abcdefg", "abcdefg", "abcdefg" ] # Function to create a new collection if it doesn't exist def create_c…