Divooka Reference

Hand Painting

1 node

On this page 1

Paint By Hand

Function

A mask painted by hand: open the node's painter, and paint on the model - turning round it, across its seams - or on the flat texture; each stroke is a step Undo takes back. The strokes are kept on the node, so the mask comes out sharp at any size.

Signature
PaintByHand -> (result: Texture, color: Texture, strokes: Paint Strokes)
    _self: IDivookaNode
    mesh: MaterialMesh
    size: Integer
    stamp: Texture
    under: Paint Strokes
Texture PaintByHand(
    IDivookaNode _self,
    out Texture color,
    out PaintStrokes strokes,
    MaterialMesh mesh,
    int size = 1024,
    Texture stamp,
    PaintStrokes under)

Parameters

nametypedefaultdescription
_selfIDivookaNode—The node, whose strokes are read.
meshMaterialMesh—The model to paint on; without one, the painter paints on a texture that tiles.
sizeInteger1024The mask's width and height in pixels.
stampTexture—A picture the brush can stamp - a brush alpha, or a decal to press on.
underPaint Strokes—Strokes to paint over, made by other nodes: the brush paints over them and its eraser rubs them out.

Returns

resultTexture
colorTexture
strokesPaint Strokes
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hand Painting
Package
Image Processing