That is actually very simple, using while-loops:
#declare Sphere_Radius=3;
#declare Amount_Of_Objects=10;
#declare Counter=0;
#while (Counter<Amount_Of_Objects)
object{The_Object translate x*Sphere_Radius rotate
y*360/Amount_Of_Objects*Counter}
#declare Counter=Counter+1;
#end
This way, 10 objects (declared as The_Object) would be placed on the y-plane
around the sphere. Note that I haven't taken into consideration the size of
The_Object itself, you might want to increase Sphere_Radius then.
--
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de
Post a reply to this message
|