mannequin humanoïde 3D : import bpy
import random

# Effacer la scène
bpy.ops.object.select_all(action='S | Tripo AI
Lv.0

maniquí humanoide 3d

Parcourir tous les modèles 3D
Prompt

import bpy import random # Effacer la scène bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete() # Créer le matériau bois mat_madera = bpy.data.materials.new(name="Madera") mat_madera.diffuse_color = (0.4, 0.2, 0.1, 1) # Créer le matériau toit mat_techo = bpy.data.materials.new(name="Techo") mat_techo.diffuse_color = (0.1, 0.1, 0.1, 1) # Créer le terrain bpy.ops.mesh.primitive_plane_add(size=50) terreno = bpy.context.object terreno.name = "Terreno" # Fonction pour la maison japonaise def crear_casa(x, y): # Base bpy.ops.mesh.primitive_cube_add(size=2, location=(x, y, 1)) home = bpy.context.object house.scale = (2, 2, 1.5) house.data.materials.append(wood_mat) # Plafond bpy.ops.mesh.primitive_cone_add(vertices=4, radius1=3, depth=2, location=(x, y, 4)) roof = bpy.context.object ceiling.rotation_euler[2] = 0.785 roof.data.materials.append(roof_mat) # Créer plusieurs maisons for i in range(8): create_home(random.randint(-15,15), random.randint(-1)

4K·PBR·Tripo H3.1

Modèles similaires