2
$\begingroup$

I'm trying to Randomize Scale(only Z) of some identical boxes, the goal being to have all of their bottom faces on the same level, while top faces are on different heights.

As you can see below, some of the boxes have their Z randomized to negative values.

I know Blender accepts some simple maths when entering values, so I tried entering |6.24| (as an absolute value) to see if that will work, but no luck.

So, I'd like to know if there's a smarter way to go about this, maybe without Randomize Transform tool altogether.

Also, I'd like to know if there IS a way to use some equivalent of |x| in Blender, or is there no such feature?

Thank you for your time!

$\endgroup$
2
  • 2
    $\begingroup$ In addition to an actual answer, note that Blender's math operations apply to what you are typing into the field, they are not evaluated in context. So the hypothetical |6.24| would not work for what you want, since it would evaluate to 6.24 which is the same as if you just typed 6.24 into the field directly. $\endgroup$
    – Kroltan
    Mar 15 at 15:35
  • 1
    $\begingroup$ Note that you can use abs(value) to get the positive of value. $\endgroup$
    – Vitor
    Mar 15 at 20:13
4
$\begingroup$

In Blender 2.92, you can use the new Geometry Nodes to place boxes randomly with random heights. The Attribute Randomize node lets you define a minimum and a maximum value for the scale. blocks on a plane with geometry nodes

$\endgroup$
4
$\begingroup$

Just randomize them like you did. Then add an empty and parent all cubes to it.

Then move the empty up (z-Axis) as much as you need it.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.