Implement a linear-interpolation math node that maps an input value from an input range [in_min, in_max] onto an output range [out_min, out_max]. - node.py: SimpleLERP class (classic INPUT_TYPES/RETURN_TYPES pattern), float inputs for value and both ranges, plus a clamp toggle. Guards against a zero-width input range and supports inverted ranges. - __init__.py: export NODE_CLASS_MAPPINGS / NODE_DISPLAY_NAME_MAPPINGS for ComfyUI discovery. - README.md: usage, formula, and inputs/outputs tables. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 lines
131 B
Python
4 lines
131 B
Python
from .node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|