Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: US3087 on January 13, 2021, 04:58:33 AM

Title: Path mode Scale beginning and end
Post by: US3087 on January 13, 2021, 04:58:33 AM
Hi, wonder if anybody can help me with Forest Pack Effects / expressions.

What I want to do is have the scale of scattered items be controllable by a curve / graph along the distance it's distributed along a spline.

For example, I have cascading plants that are set to path mode, but I want the longest cascades in the middle of the spline and smaller cascades at the beginning and end of the spline.

Any way I can set about doing this? I can simply multiply the fpItem.scale calue by fpItem.distPathPos, but that gives me not the result I want..

Appreciate any help!
Title: Re: Path mode Scale beginning and end
Post by: Rokas on January 13, 2021, 07:55:03 AM
Hi

Sure. I think You got it pretty close to writing Yourself. Anyway here it is finished example:

(https://i.imgur.com/h7xk7Hu.png)
Title: Re: Path mode Scale beginning and end
Post by: US3087 on January 13, 2021, 08:24:31 AM
Oh wow, legend!!

So much thanks right now Rokas!
Title: Re: Path mode Scale beginning and end
Post by: US3087 on January 13, 2021, 08:29:20 AM
Is there also a way to use the same / other curve to control the spacing value as well? (denser at ends, sparser in the middle)?
Title: Re: Path mode Scale beginning and end
Post by: Rokas on January 13, 2021, 08:31:44 AM
For that granular level control You'd better use RailClone.
Title: Re: Path mode Scale beginning and end
Post by: US3087 on January 13, 2021, 08:33:24 AM
Railclone and plants don't work too well - as it's trying to make one large mesh rather than instance the segment? (I believe only Vray has the instancing option and I'm on Corona)

Or am I wrong here?
Title: Re: Path mode Scale beginning and end
Post by: Rokas on January 13, 2021, 08:36:17 AM
It should be fine with both vRay and Corona. Let us know if You face any challenges.
Title: Re: Path mode Scale beginning and end
Post by: US3087 on January 13, 2021, 08:37:22 AM
Cheers, thanks I'll give it a go
Title: Re: Path mode Scale beginning and end
Post by: Rokas on January 13, 2021, 08:47:32 AM
Anyway, added another curve to control spacing.

(https://i.imgur.com/RQLmaY7.png)