# Napisz skrypt w języku python dla Blender który wygeneruje sfere o promieniu 1cm dla każdego wierzchołka większej sfery o promienu 5cm  
# Write a python script for Blender that will generate a 1cm radius sphere for each vertex of a larger 5cm radius sphere

import bpy

# Create large sphere
bpy.ops.mesh.primitive_uv_sphere_add(radius=5)
large_sphere = bpy.context.active_object

# Iterate over all vertices in the large sphere
for vertex in large_sphere.data.vertices:
    # Create a small sphere at the location of the current vertex
    bpy.ops.mesh.primitive_uv_sphere_add(radius=0.5)
    small_sphere = bpy.context.active_object
    small_sphere.location = vertex.co

# Select all small spheres
for obj in bpy.data.objects:
    if obj.type == 'MESH':
        obj.select_set(True)

# Join all small spheres into a single object
bpy.ops.object.join()