HowTo Instance Along Curve a Sweep Object

HowTo Instance Along Curve a Sweep Object

The-Digital-Shaman
Advocate Advocate
1,538 Views
3 Replies
Message 1 of 4

HowTo Instance Along Curve a Sweep Object

The-Digital-Shaman
Advocate
Advocate

Hi there,

 

I have a quite simple thing to do.

 

I've created an object with sweep tool, which now I would like to distribute in instanced copies along a curve.

 

Everyone recommends MASH, but it breaks the non-destructibility offered by sweep tool.

"Position Along Curve" command does good transformation, but does not rotate the object.

 

I also found this beauty;

https://www.youtube.com/watch?v=k4i_dZjxVr0&fbclid=IwAR3SsydBY3WVrp27y35QmAbnZ-pqZKBvdmbr3r2FuLsTptK...

But doesn't work new Maya versions. 

How would you go about this?

Also I would prefer not being forced to move objects to 0,0,0 in order distribute them correctly.
I know that one can attach to path and do some animation ghosting stuff. Doesn't look promising this method.

 

0 Likes
1,539 Views
3 Replies
Replies (3)
Message 2 of 4

teddude75
Collaborator
Collaborator

Mash is definitely the easiest. If you don't want to use mash you can use the motion path.

pivot.png

 

Make sure that your pivot is at the bottom of the object.

motionPath.png

twist.png

Then connect a motion path and adjust the twist to rotate. This will give you animation.

snapShot.png

So to bake it into objects use animation snap shot.

0 Likes
Message 3 of 4

The-Digital-Shaman
Advocate
Advocate

Thanks Teddude for the reply and encouragement to try something new!

Not bad. It allows me to do what I am after.

The control which adjusting curve in graph editor offers is pretty dope!
Doesn't automatically update the distribution when Bezier of the curve is adjusted, but that's minor, since it updates when points (keys?) position is being adjusted.

0 Likes
Message 4 of 4

teddude75
Collaborator
Collaborator

Because it  is over time you can adjust the timeline to something smaller. Also the curve in the graph editor on motion path is spline, so change it to linear for better distribution.

smallerTimeline.png

 You can also get the the length of the curve with a curve info node and divide that by the width of your object.

Screenshot 2023-01-20 120706.png

 If I've answered your question please mark it answered. Thanks

0 Likes