Skip to main content
Version: 5.x

Nodes > Functions > Sample > Flipbook Sample

Flipbook Sample

Samples colors from frames on an animated flipbook sheet. Useful for animating textures.

Inputs

NameTypeDescription
Texturetex2DFlipbook texture to sample
Frame CountfloatHorizontal and vertical number of frames appearing on the flipbook sheet
Max FramesfloatNumber of valid animation frames. Frame numbers higher than this are ignored, useful when working with a flipbook texture having empty frames at the end.
UV CoordsfloatCoordinates relative to the drawing area. Should be range 0-1
Offset (frames)floatFrame offset to apply
Speed (fps)floatWhen animation is enabled, controls animation speed in frames per second
Offset (seconds)floatWhen animation is enabled, applies a time offset in seconds

Outputs

NameTypeDescription
ColorcolorSampled color of the current frame to draw on the flipbook sheet

Properties

NameTypeDescription
CoordsdropdownChoose what source to use for the UV Coordinates. If "UV Coord 0" or "UV1 Coord 1" are selected, the respective surface UV set will be used. If "Custom" is selected, the UV Coords input will be exposed and used instead
AnimateboolIf enabled, the current frame will animate over time, cycling horizontally then vertically through the flipbook sheet
Was this page helpful?
Yes
No