Itoo Software Forum

Author Topic: Lock scale on specific axis  (Read 792 times)

EO3276

  • Newbie
  • *
  • Posts: 4
Lock scale on specific axis
« 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.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1559
Re: Lock scale on specific axis
« Reply #1 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,

EO3276

  • Newbie
  • *
  • Posts: 4
Re: Lock scale on specific axis
« Reply #2 on: February 09, 2018, 01:51:15 PM »
Thank You, i'll try it out, and let You know how it went.

EO3276

  • Newbie
  • *
  • Posts: 4
Re: Lock scale on specific axis
« Reply #3 on: February 09, 2018, 02:41:55 PM »
Works like a charm, exactly what i needed. Thank You very much.