Itoo Software Forum

Author Topic: Path mode Scale beginning and end  (Read 1393 times)

US3087

  • Newbie
  • *
  • Posts: 13
Path mode Scale beginning and end
« 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!

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Path mode Scale beginning and end
« Reply #1 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:

Rokas

US3087

  • Newbie
  • *
  • Posts: 13
Re: Path mode Scale beginning and end
« Reply #2 on: January 13, 2021, 08:24:31 AM »
Oh wow, legend!!

So much thanks right now Rokas!

US3087

  • Newbie
  • *
  • Posts: 13
Re: Path mode Scale beginning and end
« Reply #3 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)?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Path mode Scale beginning and end
« Reply #4 on: January 13, 2021, 08:31:44 AM »
For that granular level control You'd better use RailClone.
Rokas

US3087

  • Newbie
  • *
  • Posts: 13
Re: Path mode Scale beginning and end
« Reply #5 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?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Path mode Scale beginning and end
« Reply #6 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.
Rokas

US3087

  • Newbie
  • *
  • Posts: 13
Re: Path mode Scale beginning and end
« Reply #7 on: January 13, 2021, 08:37:22 AM »
Cheers, thanks I'll give it a go

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Path mode Scale beginning and end
« Reply #8 on: January 13, 2021, 08:47:32 AM »
Anyway, added another curve to control spacing.


Rokas