Q: scene scale and unify zbrush

Hi (Marcus)

Zbrush has a scale master plugin I think Joseph made not sure?

I am trying to understand the math behind what the "zbrush scale unify" button is doing, yeah my primitive brain is a little like what!?

The way I see it is:

You look at all the objects sizes in the scene

The biggest subtool/mesh will then be reduced so that it will fit inside a 2 x 2 x 2 unit or volume.

The amount that you had to use to get the subtool to that size you will use on all the other subtools.

Then you need to use the inverse of that amount on the export settings to maintain the size of the subtool.

Mmmm right if I haven't lost you yet, I might of lost myself.

The equation for this and my math is so rusty and embarrassing I get this:

If a 1 unit cube needs to be 2 units, we need to multiply it by 2

That means export setting will be divided by 2 to maintain the size of the subtool.

1x = 2

x = 2

If a 3 unit cube needs to be 2 units, we need to divide it by something to get it by 2, I know its 1.5.

Also the export needs to be than miltiplied by 1.5

3/x = 2 (no idea how to make this into code haha)

3/1.5 =2 (but this is true)

So my first question is, am I on the right track?

Second question, how would I translate this into good old code. If you know and you think I should try it first am also OK with that :)

Thanks in advance