0% found this document useful (0 votes)
83 views1 page

Program

This Python code uses Blender's Python API to add cubes in a circular pattern around a central point. It imports necessary math functions like sine, cosine, and radians conversion. It then loops from 0 to 360 degrees incrementing by 15 degrees each time, calculating the x coordinate as r multiplied by the cosine of the current angle in radians to position each new cube on the circumference of a circle with radius r centered at the origin.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views1 page

Program

This Python code uses Blender's Python API to add cubes in a circular pattern around a central point. It imports necessary math functions like sine, cosine, and radians conversion. It then loops from 0 to 360 degrees incrementing by 15 degrees each time, calculating the x coordinate as r multiplied by the cosine of the current angle in radians to position each new cube on the circumference of a circle with radius r centered at the origin.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

import bpy

import math import sin, cos, radian

r = 10
for i in range(0,360,15)

[Link].primitive_cube_add(size=1, location = (r*cos(radians(i)

You might also like