0
$\begingroup$

I have an area (the large cylinder) where I want to be able to quickly add a varying amount of small cylinders to. Is there a way in Python I can do this by giving the dimensions of the cylinder and then the number of them across the space?

the picture shows the large plate and the smaller cylinders I want to vary in number across it

$\endgroup$
4
  • 1
    $\begingroup$ Would you consider using paricles? $\endgroup$ – Robin Betts Jun 3 '20 at 12:43
  • $\begingroup$ I am a blender beginner so open to all suggestions! $\endgroup$ – Aylor Jun 3 '20 at 12:50
  • $\begingroup$ Do you have advice for using particles? $\endgroup$ – Aylor Jun 3 '20 at 13:08
  • $\begingroup$ Coming up .. unless someone else answers that way before me. $\endgroup$ – Robin Betts Jun 3 '20 at 13:10
2
$\begingroup$

The devil might be in the detail.. but here's a base case of using a Particle System to scatter objects on a given area.

  1. Create / Duplicate a face representing the area you want scattered with the objects
  2. Create the object you want to be scattered.
  3. In its Particle Settings tab, set the face to be a particle emitter.

There are lots of settings for particle emission, but most of them are self-explanatory, maybe after a bit of trial and error. Here are my settings for this example, trying to keep everything simple to begin with, everything else at default:

enter image description here

All the particles are emitted on frame 1, and have a lifetime of 1, so you have to be there on the timeline to see them.

enter image description here

This is the rotation setting that works for me, with my scattered object ('Cylinder') created with its local Z along its length.

Depending on what you want, at any stage, the particles can be made into real instances of the scattered object by hitting Convert in the emitter's Particle Settings modifier (in its modifier stack)

Be aware that if you copy the emitter, it will share the particle system with the original. As with other kinds of shared Data-Blocks in Blender, you can make it unique to the user by clicking the digit indicating the number of users under the list of Particle Settings at the top of its Particle Settings tab

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.