<!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 (&#39;rescale&#39; in ice, &#39;scalar change range&#39; in the rendertree) and it was the the first thing I did when playing with animation-nodes. Here&#39;s the math:&#160;<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>&#160;</div>
<div>cheers,</div>
<div>Thomas</div>
<div>&#160;</div>
<blockquote type="cite" style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;">Mohamed Sakr &#60;3dsakr@gmail.com&#62; hat am 13. Juni 2016 um 02:02 geschrieben:<br><br>
<div dir="ltr">this will normalize per value &#34;which is not what I&#39;m looking for&#34;.<br>what you mentioned is: if you have an array of values, normalizing them so they won&#39;t exceed a length of 1.<br>but what I&#39;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, &#1052;&#1091;&#1082;&#1072;&#1077;&#1074; &#1042;&#1080;&#1082;&#1090;&#1086;&#1088; <span>&#60;<a href="mailto:vitos1g@gmail.com" target="_blank">vitos1g@gmail.com</a>&#62;</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 &#39;Combine XYZ &#39; node, and then using VectorMath Normalize to normalize them. And after that you can&#160; Separate XYZ to get your normalized values<br><br><br>
<div><span><br>On Sat, Jun 11, 2016 at 6:18 AM, gandalf3 &#60;<a href="mailto:zzyxpaw@gmail.com" target="_blank">zzyxpaw@gmail.com</a>&#62; wrote:<br></span><span>&#62;However, what can&#39;t be done with a node group is a *normalize* node<br> &#62;(like the compositor), as this requires calculating the min and max<br> &#62;values, which AFIAK can&#39;t be done with math nodes. How feasible would it<br>&#62;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>&#160;</div></body></html>