Downloads · 30 days
0
Craftfelix11/Cocaine
Cocaine is a machine learning model from Craftfelix11. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
bpy.ops.object.selectall(action='SELECT') bpy.ops.object.delete(useglobal=False)
Downloads · 30 days
0
Access
Public
Updated Jun 9, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 59%
From the Hugging Face model README
bpy.ops.object.select_all(action='SELECT') bpy.ops.object.delete(use_global=False)
bpy.ops.mesh.primitive_uv_sphere_add(segments=32, ring_count=16, radius=0.15, location=(0, 0, 0)) cocaine_ball = bpy.context.active_object cocaine_ball.name = "CocaineBall"
bpy.ops.object.modifier_add(type='SUBSURF') cocaine_ball.modifiers["Subdivision"].levels = 2 bpy.ops.object.shade_smooth()
mat = bpy.data.materials.new(name="CocaineMaterial") mat.use_nodes = True bsdf = mat.node_tree.nodes.get("Principled BSDF") bsdf.inputs['Base Color'].default_value = (1, 1, 1, 1) # Weiß bsdf.inputs['Roughness'].default_value = 0.8 # Matt
cocaine_ball.data.materials.append(mat)
bpy.ops.object.text_add(location=(0.05, 0, 0.15)) label = bpy.context.active_object label.data.body = "CO" label.scale = (0.05, 0.05, 0.05)
bpy.ops.export_scene.gltf(filepath="CocaineBall.glb", export_format='GLB')