1. ## Normalize scalar?

Is there a way to normalize scalar output of a node?

I have a node which is outputting huge range of numbers and would like to squeeze it between 0 and 1.0 or some other arbitrary values.

Any tip would be appreciated. Thanks!

2. Divide node?
(Divide by the max-huge-number..)

3. Yes I thought of that... Problem is I don't know what is the max value... Anyways I figured out a workaround...

4. Do you really want to sequeze 0 to x into the 0 to 1.0 range... or do you just need changing numbers between 0 and 1.0?

In the later case, mod should be your friend (it returns the remainder of dividing A by B, i.e. if you divide A by 10 then the remainder will be anything from 0 to 9, getting into the 0 to 1.0 range is just a division away in that case).

Cheers,
Mike

5. Originally Posted by Lightwolf
Do you really want to sequeze 0 to x into the 0 to 1.0 range... or do you just need changing numbers between 0 and 1.0?

In the later case, mod should be your friend (it returns the remainder of dividing A by B, i.e. if you divide A by 10 then the remainder will be anything from 0 to 9, getting into the 0 to 1.0 range is just a division away in that case).

Cheers,
Mike
No, I realy need to squeeze 0 to x into 0-1 range. Any other clues on how to tackle this?

6. Originally Posted by Jure
No, I realy need to squeeze 0 to x into 0-1 range. Any other clues on how to tackle this?
Without knowing the max value, no, not really.
If you do know it then it's just a division by the max value.

Cheers,
Mike

7. Originally Posted by Lightwolf
Without knowing the max value, no, not really.
If you do know it then it's just a division by the max value.

Cheers,
Mike
right.... thanks for help anyway!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•