Anim8or Community

General Category => General Anim8or Forum => Topic started by: Helen-SBA on May 10, 2025, 05:08:15 am

Title: Multiply (duplicate) objects along a guide
Post by: Helen-SBA on May 10, 2025, 05:08:15 am
Hi all!

Help me, please.

How can I automate the placement of copies of objects along the coordinate axes, specified guides, or along the edge of an object?

For example, I'd like to make a fence near a factory and need to place many identical posts along the perimeter of a rectangle.
Another example is to place posts along a road.
Another example is to place beads along the edge of a dress.
Title: Re: Multiply (duplicate) objects along a guide
Post by: Gyperboloid on May 16, 2025, 02:05:45 pm
The basic way to place copies along an axis is actually to use copy/paste. You copy/paste the original object and then move it with the use of "SNAP to GRID" tool. Set the spacing as needed. Then select the two objects, copy/paste again, calculate the new spacing needed, change it in "Snap to Grid" spacing Grid settings and move. Repeat as many times needed. In some easy situations it is a solution.
Anim8or doesn't have a built in command for automation like this. But there are scripts ! You can use a "path" tool to set a path along which your object will be duplicated. Also there's a script for copying mesh ( source ) along another mesh ( target ), but I think the one with the path is what you need.

Here are the links : a) For the path script Animating Tank Treads in Anim8or (https://www.tranceportsoftware.com/anim8orstuff/treads.htm) ( use the first script )
b) For the mesh to mesh ( most likely not for your case ) Script: Copy "Source" mesh to "Target" mesh (https://www.anim8or.com/smf/index.php?topic=906.msg6668#msg6668)
Title: Re: Multiply (duplicate) objects along a guide
Post by: Helen-SBA on May 19, 2025, 09:24:17 am
Thank you very much, this looks like what I need. I will try to figure out the scripts and how it works. You have been very helpful!