Studio Yotsuba
Back to Node List

Int Input

int_input

Outputs a controllable integer value with presets and soft UI range

Reviewed
Guide available

Output Ports

NameTypeDescription
Value
output
Int
Output integer value

Parameters

NameTypeDefaultRangeDescription / Options
Value
value
Int
0-100000–100000

The integer value to output

Range Preset
range_preset
Enum
PixelOffset—

Select a common soft UI range preset. Changing it also clamps the current value into that range.

  • NormalizedNormalized
    Soft UI range 0..1, step 1
  • SignedNormalizedSignedNormalized
    Soft UI range -1..1, step 1
  • PercentPercent
    Soft UI range 0..100, step 1
  • CountCount
    Soft UI range 1..16, step 1
  • PixelOffsetPixelOffset
    Soft UI range -32..32, step 1
  • LargeOffsetLargeOffset
    Soft UI range -256..256, step 1
  • CustomCustom
    Use custom soft UI range values
Soft Min
soft_min
Int
-32-100000–100000

Soft UI minimum used by slider and knob

Soft Max
soft_max
Int
32-100000–100000

Soft UI maximum used by slider and knob

Soft Step
soft_step
Int
11–1000

Soft UI step used by slider and knob

Hard Min
clamp_min
Int
-100000-100000–100000

Hard minimum clamp for the output value

Hard Max
clamp_max
Int
100000-100000–100000

Hard maximum clamp for the output value

Snap Step
step
Int
11–1000

Snap output to the nearest multiple

Overview

Supplies one integer as a constant. Use it to expose values whose integer nature matters, such as counts, steps, indices, and seeds. Use float_input when fractions are acceptable; this node is specifically for discrete values.

Usage tips

  • When several nodes share the same integer, centralize it here so one edit updates the entire graph (for example, tile size or frame count).
  • Common destinations include the index inputs of value_select, list_get, and sprite_sheet_frame_get.
  • The convenient slider range (soft_*) and actual constraints (clamp_*) are separate. Changing a preset does, however, clamp the current value into the new soft range once.

Related nodes

  • float_input — floating-point version

  • value_select / list_get — common destinations for an index

  • math_op / math_func — process integers (including converting a float to an integer with Floor)

  • version: 2

Important behavior

  • value
    • With show_on_node: true, it is always visible on the node itself.
  • range_preset / soft_*
    • These determine only the operating range of the Inspector slider / knob.
    • When you change the preset, the current value is immediately clamped into the new soft range.
  • clamp_min / clamp_max
    • These are hard clamps applied to the actual output value.
  • step
    • This is the snap step for the output value.

In other words, UI convenience and actual output constraints are handled separately.

How to use

  • New nodes start at PixelOffset (-32..32) with value = 0.
  • For counts, choose Count; the current value is also brought into 1..16.
  • When the destination is a promoted parameter, use Use destination range in the Inspector to match its soft range.
  • Tighten clamp_min / clamp_max only when you need strict constraints.
Back to Node List