Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: EO3276 on February 08, 2018, 03:21:46 PM

Title: Lock scale on specific axis
Post by: EO3276 on February 08, 2018, 03:21:46 PM
Hi, i wanted to know if there is a way to lock axis of an object when using Areas - Falloff (global properties).
I'm trying to create a brick wall perforated Opacity map - where i need the side bricks to be narrower (on the sides) of the area, but all other dimensions i need to stay the same. Hope i explained the problem correctly.
Title: Re: Lock scale on specific axis
Post by: Michal KarmazĂ­n on February 09, 2018, 01:06:37 PM
Hi,

In the recently released public beta version of the FP6, that's possible by a slight modification of the "newly added" "Z Scale by Include Boundary" Effect (to operate on the Y axis) in the following way:

real proximityToBoundary = if(fpItem.areaIncDistance<FalloffDistance, (fpItem.areaIncDistance/fallOffDistance),1);
fpItem.scale.y = (fpItem.scale.y*evaluateCurve(ZScaleCurve,1-proximityToBoundary));


Attaching a sample scene. Hope, you'll find it useful.

Best regards,
Title: Re: Lock scale on specific axis
Post by: EO3276 on February 09, 2018, 01:51:15 PM
Thank You, i'll try it out, and let You know how it went.
Title: Re: Lock scale on specific axis
Post by: EO3276 on February 09, 2018, 02:41:55 PM
Works like a charm, exactly what i needed. Thank You very much.