Nodes/WAS Affine/Latent Affine Super Options
ComfyUI Node

Latent Affine Super Options

A ComfyUI node in latent/adjust with 42 inputs and 1 output.

By WASasquatch·Created 12 months ago·Updated 4 months ago· 5
Latent Affine Super Options
    • options
    mask_strength1.000
    threshold0.000
    invert_maskfalse
    perlin_scale64
    perlin_octaves3
    perlin_persistence0.50
    perlin_lacunarity2.0
    checker_size8
    bayer_size8
    velvet_taps_per_kpx10
    green_center_frac0.35
    green_bandwidth_frac0.15
    black_bins_per_kpx512
    hatch_freq_cyc_px0.45
    hatch_angle1_deg0
    hatch_angle2_deg90
    hatch_squarefalse
    hatch_phase_jitter0.00
    hatch_supersample1
    highpass_cutoff_frac0.70
    highpass_order2
    ring_center_frac0.90
    ring_bandwidth_frac0.050
    poisson_radius_px8.0
    poisson_softness6.0
    worley_points_per_kpx2.0
    worley_metricL2
    worley_edge_sharpness1.0
    tile_line_tile_size32
    tile_line_freq_cyc_px0.40
    tile_line_jitter0.25
    dot_cell_size12
    dot_jitter_px1.5
    dot_fill_ratio0.30
    content_window7
    solid_alpha1.000
    blur_ksize0
    blur_sigma0.0
    clampfalse
    clamp_min-10.0
    clamp_max10.0
    frame_seed_stride1
    Categorylatent/adjust

    Inputs (42)

    NameTypeDefaultDescription
    mask_strengthFLOAT1.0000–2Scales mask intensity before applying scale/bias. Examples: 0.5 = weaker effect, 1.0 = normal, 2.0 = strong. Influence: higher values increase the contribution of the mask to scaling and bias.
    thresholdFLOAT0.0000–1Binarize mask if > 0. Converts mask to 0/1 using this threshold. Examples: 0.5 creates hard separation. Influence: higher threshold produces larger black areas; lower produces larger white areas.
    invert_maskBOOLEANfalseInvert the mask after threshold/blur. Examples: True flips dark/bright regions. Influence: swaps where scale/bias are applied.
    perlin_scaleFLOAT644–1024Controls Perlin noise frequency. Examples: 32 = coarse blobs, 128 = fine details. Influence: larger scale gives smaller features (higher frequency).
    perlin_octavesINT31–8Number of Perlin octaves. Examples: 1 = simple, 4 = richer. Influence: more octaves add multi-scale detail.
    perlin_persistenceFLOAT0.500.1–1Amplitude multiplier between octaves. Examples: 0.3 = smoother, 0.8 = higher contrast. Influence: higher increases contribution of finer octaves.
    perlin_lacunarityFLOAT2.01–4Frequency multiplier between octaves. Examples: 2.0 (default), 3.0 = more fine detail. Influence: higher values add finer features faster.
    checker_sizeINT82–256Checkerboard cell size in pixels. Examples: 8 = small squares, 64 = large squares. Influence: sets tiling size for 'checker' pattern.
    bayer_sizeINT82–64Bayer matrix base size. Examples: 4, 8, 16. Influence: controls dithering pattern scale for 'bayer'.
    velvet_taps_per_kpxINT101–10000Velvet noise density in taps per kilo-pixel (per 1000 pixels). Higher = more impulses (denser).
    green_center_fracFLOAT0.350–1Green noise band center as a fraction of Nyquist radius (0..1).
    green_bandwidth_fracFLOAT0.150.01–1Green noise Gaussian band width as a fraction of Nyquist radius (0..1).
    black_bins_per_kpxINT5121–500000Black noise density as active frequency bins per 1000 pixels (rFFT domain). Higher = more narrowbands.
    hatch_freq_cyc_pxFLOAT0.450.01–2Cross-hatch frequency in cycles/pixel. >0.5 allows intentional aliasing.
    hatch_angle1_degINT00–179First hatch angle (degrees).
    hatch_angle2_degINT900–179Second hatch angle (degrees).
    hatch_squareBOOLEANfalseUse square-wave (adds harmonics).
    hatch_phase_jitterFLOAT0.000–1Random phase jitter multiplier per seed/frame.
    hatch_supersampleINT11–8Supersampling factor for anti-aliased subpixel hatch.
    highpass_cutoff_fracFLOAT0.700.01–1Butterworth HPF cutoff as fraction of Nyquist radius.
    highpass_orderINT21–10Butterworth HPF order.
    ring_center_fracFLOAT0.900–1Ring center as fraction of Nyquist radius.
    ring_bandwidth_fracFLOAT0.0500.005–1Ring Gaussian bandwidth as fraction of Nyquist radius.
    poisson_radius_pxFLOAT8.01–256Poisson-disk minimum spacing in pixels.
    poisson_softnessFLOAT6.00.1–256Distance mapping softness. Larger = smoother mask.
    worley_points_per_kpxFLOAT2.00.1–200Feature points per 1000 pixels.
    worley_metricCOMBOL2Distance metric for Worley.
    worley_edge_sharpnessFLOAT1.00.1–8Exponent to sharpen edges.
    tile_line_tile_sizeINT324–512Tile size in pixels.
    tile_line_freq_cyc_pxFLOAT0.400.01–2Line frequency in cycles/pixel per tile.
    tile_line_jitterFLOAT0.250–1Phase jitter per tile (0..1).
    dot_cell_sizeINT122–256Halftone cell size in pixels.
    dot_jitter_pxFLOAT1.50–10Dot center jitter in pixels.
    dot_fill_ratioFLOAT0.300.01–0.95Approximate fill area per cell (0..1).
    content_windowINT73–63Odd kernel size for content-aware local variance (detail/smooth patterns). Typical: 5-11.
    solid_alphaFLOAT1.0000–1Solid mask constant alpha (0..1). 0 disables; 1 full mask.
    blur_ksizeINT00–51Gaussian blur kernel size (odd). Examples: 0/1 = no blur, 9 = soft edges. Influence: larger values smooth mask transitions.
    blur_sigmaFLOAT0.00–16Gaussian blur sigma. Examples: 0 = no blur, 1.5 = moderate. Influence: controls blur strength; used only if > 0 and ksize > 1.
    clampBOOLEANfalseClamp output latent values to [min,max]. Examples: True to avoid extreme values. Influence: prevents overflows after scaling/bias.
    clamp_minFLOAT-10.0-100–0Lower clamp bound if clamping is enabled. Examples: -5.0.
    clamp_maxFLOAT10.00–100Upper clamp bound if clamping is enabled. Examples: 5.0.
    frame_seed_strideINT11–100000Seed increment per frame when 'per_frame' temporal mode is used. Examples: 1, 9973 (prime).

    Outputs (1)

    NameTypeDescription
    optionsDICT