10-26-2019, 04:04 PM
Hi Savat,
The Scale operator can't do that by default, but you could easily achieve that with the Script operator. Just cast a ray from your particle position to the spline, get the distance, and set the Z-axis of each particle's scale to the distance value. Make sure your input shape has a height of 1 for this to work, or else you'll need to divide the resulting distance by the height of your shape.
Attached is a scene file showing how it's done. Note that the effect won't work if the raycast doesn't hit anything, so make sure all particles are beneath a part of the spline.
The Scale operator can't do that by default, but you could easily achieve that with the Script operator. Just cast a ray from your particle position to the spline, get the distance, and set the Z-axis of each particle's scale to the distance value. Make sure your input shape has a height of 1 for this to work, or else you'll need to divide the resulting distance by the height of your shape.
Attached is a scene file showing how it's done. Note that the effect won't work if the raycast doesn't hit anything, so make sure all particles are beneath a part of the spline.