Studio Yotsuba
Back to Node List

Input Pin

input_pin

Defines an input port for a custom node

Reviewed
Guide available

Output Ports

NameTypeDescription
Value
value
Any
The input value passed from the parent graph

Parameters

NameTypeDefaultRangeDescription / Options
Pin ID
pin_id
Text
——

Stable identifier of this input port.

Port Name
pin_name
Text
input—

Name of this input port (visible on the custom node exterior)

Port Type
port_type
Enum
Image—

Type of this input port

  • ImageImage
  • NumberNumber
  • FloatFloat
  • IntInt
  • ColorColor
  • BoolBool
  • TextText
  • Vec2Vec2
  • Vec3Vec3
  • OklchAdjustOklchAdjust
  • PalettePalette
  • ListList
  • PathPath
  • PixelLinePixelLine
  • SolidSolid
  • MapMap
  • TextLayoutTextLayout
  • PixelPatchPixelPatch
  • IndexedImageIndexedImage
  • IsoItemIsoItem
  • IsoSceneIsoScene
  • IsoWorldIsoWorld
  • AsepriteFileAsepriteFile
  • AnimationClipAnimationClip
  • RuleGridSpecRuleGridSpec
  • RuleTileSetRuleTileSet
  • RuleTileAssetRuleTileAsset
  • RuleSetRuleSet
  • RuleCanvasRuleCanvas
  • RuleResolvedRuleResolved
  • RuleTileAtlasRuleTileAtlas
  • TileAssetTileAsset
  • TilePaletteTilePalette
  • TileCanvasTileCanvas
  • TileResolvedTileResolved
  • NineSliceNineSlice
  • RegionMapRegionMap
  • RecordedLayerRecordedLayer
  • SpriteSheetSpriteSheet
  • FxState2DFxState2D
  • VariantSnapshotVariantSnapshot
  • VariantRecipeVariantRecipe
  • VariantRecordVariantRecord
  • SurfaceSurface
  • SurfaceGeometrySurfaceGeometry
  • ModelModel
  • PbrMaterialPbrMaterial
  • TangentNormalTangentNormal
  • TextureLayoutTextureLayout
  • ProceduralPaletteRecipeProceduralPaletteRecipe
  • AudioBufferAudioBuffer
  • AutomationCurveAutomationCurve
  • AnyAny
Required
required
Bool
true—

Whether this input is required

Optional
optional
Bool
false—

Allow this custom-node input to remain unconnected

Overview

A special node that defines an input to a custom node (a subgraph turned into a node). Place it inside a custom node to expose one input port on the outside. It has no purpose on its own in a regular graph.

Usage tips

  • Use it only inside a custom node. Place it in the internal graph where a value should enter from outside, then connect its value output to the internal processing.
  • pin_name and port_type determine how it appears outside. Choose the correct type from the start; changing it later disconnects external connections.
  • Enable required to report an error when the port is unconnected outside (for mandatory inputs such as an image).
  • Place multiple Input Pin nodes to give a custom node multiple inputs. Remember to manage their order as well.

Related nodes

  • output_pin — its output-side counterpart (use them together)
  • bake_subgraph / snapshot_node — caching nodes related to custom-node workflows
Back to Node List