
modèle 3d de composants
import bpy import bmesh import math from mathutils import Vector, Euler # ============================================================================== # 1. 씬 정리 및 단위 설정 (밀리미터) # ============================================================================== bpy.ops.wm.read_factory_settings(use_empty=True) scene = bpy.context.scene scene.unit_settings.system = 'METRIC' scene.unit_settings.scale_length = 0.001 # 1 Blender 단위 = 1 mm scene.unit_settings.length_unit = 'MILLIMETERS' # 컬렉션 생성 col_shell = bpy.data.collections.new("01_Coque_Externe_Gant") col_hardware = bpy.data.collections.new("02_Gabarits_Composants_PC") col_lights = bpy.data.collections.new("03_Eclairage_Vitres") scene.collection.children.link(col_shell) scene.collection.children.link(col_hardware) scene.collection.children.link(col_lights) # ============================================================================== # 2. PBR 재질 생성 # =
4K·PBR·Tripo H3.1