Randomize scale on 1 axis

 From:  Michael Gibson
5963.11 In reply to 5963.10 
Hi Burr,

> Can you discuss a little about the parts of the scale function that need to change to use the bounding box "bottom"
> instead of center, in the randomize command?

You can use the Transform > Align command on objects to align their bounding box bottoms to a particular point, that should get the result you want I think.

To do it directly in the randomize command you can edit the Randomize.js file, find the function for ScaleObject(), and in there the current center is done by this:

var center = obj.getBoundingBox().center;

If you want to pull the z value down to the bottom of the bounding box, add a line underneath it that adjusts the z value to the min corner of the bounding box, like so:

var center = obj.getBoundingBox().center;
center.z = obj.getBoundingBox().min.z;


With that second line added, the scaling should happen from a base point on the center bottom of the bounding box instead of it's full center.

Hope that's what you were asking for.

- Michael