Script to normalize scale

Hey lovely helpful forum!

I’m just wondering if anyone has come across or written a script to normalize the scale of a set of objects. I’m working on a suite of scripts that remix and arrange any random set of geometry and sometimes the input geometry has too great a range in scale.

I would like to preserve the hierarchy of size but reduce the amount of variation at the extremes. What I have so far takes the min and max dimensions and calculates the normalized dimensions for each object based on an arbitrary input range. My problem is that I’m not sure how to then calculate the scale factor…

I know I need to compare the current dimension with the normalized dimension of each object, but I’m not sure where to go from there?

Thanks~

How about

scale = normalized_dimension / current_dimension

HTH
-Willem

Oh man, haha that totally does it. I’m a dum dum, the problem was with the geometry I was using and how I was normalizing it.

Thanks!

1 Like