Scaling panels

I have a panels size with a min depth that needs to be scaled up (one direction) incrementally to it is max. depth along a curve/path a number of 10 times for example. Let’s say that the max depth is 40 and min depth 12. So how can I specify the max depth?

Here is the screen shot of my script but it is scaling beyond the max. Not sure how to specify the max target when I scale it. Any help would be much appreciated.

1 Like

Thank you!

1 Like

I had something similar to your second script except that I did not specify the range and domains. Helpful and learning so much. You’re a big asset in GH community.

Thank you.

It also works to Orient before Scale NU:

Or to use PFrames instead of HFrames:

1 Like