Yotsuba Games

Clamp

Clamps a number between minimum and maximum

intermediate
Since P00

Input Ports

Input

Input input for Clamp.

Number

Output Ports

Value

Value output from Clamp.

Number

Parameters

NameTypeDefaultDescription
Range PresetEnum`Normalized`Controls the range preset setting for Clamp.
MinFloat`0.0`Controls the min setting for Clamp.
MaxFloat`1.0`Controls the max setting for Clamp.
Soft MinFloat`0.0`Controls the soft min setting for Clamp.
Soft MaxFloat`1.0`Controls the soft max setting for Clamp.
Soft StepFloat`0.01`Controls the soft step setting for Clamp.

Overview

Clamps a number between minimum and maximum

Inputs and Outputs

Input Ports

  • Input Number: Input input for Clamp.

Output Ports

  • Value Number: Value output from Clamp.

Key Parameters

NameTypeDefaultDescription
Range PresetEnum`Normalized`Controls the range preset setting for Clamp.
MinFloat`0.0`Controls the min setting for Clamp.
MaxFloat`1.0`Controls the max setting for Clamp.
Soft MinFloat`0.0`Controls the soft min setting for Clamp.
Soft MaxFloat`1.0`Controls the soft max setting for Clamp.
Soft StepFloat`0.01`Controls the soft step setting for Clamp.

When to Use

Use Clamp when you need this operation to remain explicit, reusable, and easy to tune inside a PixPipeline node graph.

Notes

Connect compatible data types and preview the result while tuning this node. Parameter names and port names follow the PixPipeline UI.