3D Workspace
Home
Assets
Affiliate Program
Creator Program
Sign up/Log in
?
Upgrade
DCC Bridge
Anonymous1759078192
09-28 17:01
Model Name
conical straw hat 3d model
Tags
cappello
conical straw hat
floral embroidered
hat
mad hatter
mitten style
props
props realistic
props rendering
props rendering realistic
realistic
rendering
rendering realistic
Prompt
import bpy import bmesh from math import radians # Hapus semua objek bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False) # Buat caping (cone) bpy.ops.mesh.primitive_cone_add(vertices=64, radius1=1.8, radius2=0, depth=1, location=(0,0,0)) hat = bpy.context.active_object hat.name = "Caping" # Tambah ornamen hiasan (permata kecil di pinggir) colors = [(0,0,1,1), (0,1,0,1), (0.6,0,0.8,1), (0.4,0.3,0.2,1)] # biru, hijau, ungu, cokelat positions = [(-1,0,0), (0.3,1,0), (1,0.2,0), (0,-1,0)] # posisi sekeliling for i, pos in enumerate(positions): bpy.ops.mesh.primitive_uv_sphere_add(radius=0.1, location=(pos[0], pos[1], 0)) gem = bpy.context.active_object gem.name = f"Ornament_{i}" mat = bpy.data.materials.new(name=f"Color_{i}") mat.diffuse_color = colors[i] gem.data.materials.append(mat) # Gabungkan ke satu object bpy.ops.object.select_all(action='DESELECT') hat.select_set(True) for obj in bpy.data.objects: if "Ornament" in obj.name: obj.select_set(True) bpy.context.view_layer.objects.active = hat bpy.ops.object.join()
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!