<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}
</style></head><body style=""><div>+1 for such a node.</div>
<div>I use it frequently when working in Softimage ('rescale' in ice, 'scalar change range' in the rendertree) and it was the the first thing I did when playing with animation-nodes. Here's the math: <a href="https://github.com/knekke/animation-nodes/blob/master/nodes/number/mn_float_rescale.py">https://github.com/knekke/animation-nodes/blob/master/nodes/number/mn_float_rescale.py</a></div>
<div> </div>
<div>cheers,</div>
<div>Thomas</div>
<div> </div>
<blockquote type="cite" style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;">Mohamed Sakr <3dsakr@gmail.com> hat am 13. Juni 2016 um 02:02 geschrieben:<br><br>
<div dir="ltr">this will normalize per value "which is not what I'm looking for".<br>what you mentioned is: if you have an array of values, normalizing them so they won't exceed a length of 1.<br>but what I'm looking for is: if you have an array of values, normalizing them so the result will be equal to value / max value in array</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jun 12, 2016 at 10:20 PM, Мукаев Виктор <span><<a href="mailto:vitos1g@gmail.com" target="_blank">vitos1g@gmail.com</a>></span> wrote:<br>
<blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div dir="ltr">There is a way to normalize values just by feeding it along with zeros to 'Combine XYZ ' node, and then using VectorMath Normalize to normalize them. And after that you can  Separate XYZ to get your normalized values<br><br><br>
<div><span><br>On Sat, Jun 11, 2016 at 6:18 AM, gandalf3 <<a href="mailto:zzyxpaw@gmail.com" target="_blank">zzyxpaw@gmail.com</a>> wrote:<br></span><span>>However, what can't be done with a node group is a *normalize* node<br> >(like the compositor), as this requires calculating the min and max<br> >values, which AFIAK can't be done with math nodes. How feasible would it<br>>be to implement such a node?</span></div>
</div>
<br>_______________________________________________<br> Bf-cycles mailing list<br> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br> <a href="https://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br> </blockquote>
</div>
</div>
_______________________________________________<br>Bf-cycles mailing list<br>Bf-cycles@blender.org<br>https://lists.blender.org/mailman/listinfo/bf-cycles</blockquote>
<div><br> </div></body></html>