JSNormalizer (Composition by cybero)

Author: cybero
License: MIT
Date: 2010.02.17
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

This virtual macro takes any input between -1 to 1 and normalises that number range to be between 0 to 2.

This is useful when one is feeding dynamic data of such a range that one wishes to visualise using objects that do not much appreciate negative numbers.

Thus one can stop one source of sig exec faults before they ever start.

PreviewAttachmentSize
JSNormalizer.zip5.58 KB
JSNormalizer.qtz1.5 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

franz's picture
Re: JSNormalizer (Composition by cybero)

To convert a range -1>>1 to 0>>2 , you just add +1. So why a JS macro ?

your example seems more like a abs() function ...

cybero's picture
Re: JSNormalizer (Composition by cybero)

mmm, good point [and yes it does like an abs() function] - :-)