MoI discussion forum
MoI discussion forum

# Full Version: Linear scaling along curve

From: MA
20 Sep   [#1]
Hi Hivemind,

Trying to figure out how to scale a series of objects from big to smaller towards the end along a curve. Sort of like a scaling command for an array?
From: MA
20 Sep   [#2] In reply to [#1]
Replying myself :D Found the ScaleArray command and it worked - sort of. However, I would like the distance between the scaled objects to down at the same rate so as not to leave gaps towards the end. Is that possible?
From: Frenchy Pilou (PILOU)
20 Sep   [#3]
You can also use the V.clone by Max Smirnov
Just Draw any staight segments of line anywhere you want
Each was replace by an object chosen and scaled by the scale of the segment!

PS in fact you take any different curves as target vectors! (arc circle, Polylines, etc... ;)
From: Frenchy Pilou (PILOU)
20 Sep   [#4]
For the decrease / Increase of something you have several solutions
_fxgraph2D _fxgraph3D, Elephant nodes, no so evident or simple tricky things! :)
Nodes like this recent post! ;) https://moi3d.com/forum/index.php?webtag=MOI&msg=10850.1

Here a simple Trim

From: Michael Gibson
20 Sep   [#5] In reply to [#2]
Hi MA,

re:
> However, I would like the distance between the scaled objects to down at the same rate so as
> not to leave gaps towards the end. Is that possible?

If you want to maintain a constant distance between the objects there is a Distribute plug-in that can reposition objects to do that here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8503.13

The way you would use it would be to initially array your objects in a straight direction along a line, then apply ScaleArray, then apply Distribute, then apply Transform > Deform > Flow with '"Rigid" option turned on to map from the straight line onto the curve.

If constant distance between objects is not what you want then maybe you could show an example of what result you want and then it should probably work to modify the ScriptArray plugin to do the particular progression you want (again using Flow to map onto the curve):
http://moi3d.com/forum/index.php?webtag=MOI&msg=5595.18

- Michael
From: Frenchy Pilou (PILOU)
20 Sep   [#6]
Use the Flow function ! ;) (i was not enough speedy ! :)

Then use the VClone Above

Like this you have exactly that you want! But not just linear any thing! :)
Any object along a curve with scale changing! ;)

Max Smirnov archive : https://moi3d.com/wiki/MaxScriptArchive
From: MA
21 Sep   [#7] In reply to [#5]
I think the constant distance is exactly what I wanted. I will try it out! Trying to make a segmented curvy tentacle shape that tapers off towards the end, and I think this plug-in will do nicely. I'll check the ScriptArray plugin if need be. Thanks for the very fast support - as usual!

/Magnus