Codeboard.

API guide

Import the public API in an authoring script, then execute it with codeboard run:

import { StoryboardProject, brushes, renderFramePNG } from 'codeboard-studio';

Document structure

ObjectCreate or access it
ProjectStoryboardProject.create(options), StoryboardProject.open(path)
Sequenceproject.addSequence(name, id?)
Sceneproject.addScene(name, id?), sequence.addScene(name, id?)
Shotscene.addShot(name, id?)
Panelshot.addPanel(options), project.panel(id)
Layerpanel.addRasterLayer, panel.addVectorLayer, panel.addGroup, panel.layer(id)
ElementThe ID returned by rasterStroke, vectorStroke, path, text, or rasterSurface

Use stable IDs where later scripts need to find an object. A panel's duration is in frames; dimensions are canvas units.

Task map

TaskAPI and guide
Generate pen movementcatmullRom, cubic, line, ellipse, samplePath: drawing
Paint or edit contoursrasterStroke, erase, vectorStroke, path, edit: drawing
Edit pixelsrasterSurface, readPixels, editPixels, pixel selection helpers: drawing
Author a brushcustomizeBrush, brushTipFromFunction, renderBrushSwatch: brushes
Import a tip or presetimportBrushResource, brushFromResource: brushes
Compose artworklayer.set, project.select, production.moveLayer, production.reparentLayer: layers
Change drawings over timesetDrawingSequence, setDrawingRange, drawingNeighbors: animation
Animate propertiesLayer and camera keyframe methods: animation, camera
Place soundAsset, audio track, and clip methods: audio
Inspect a resultrenderDetail, renderContactSheet, renderFrameSheet, renderOnionSkin: review
Save or restore worksave, open, transaction, undo, ProjectStore: projects
Deliver filesexportStoryboard, exportAnimaticPackage, exportMovie: export

Units and identity

Positions and brush sizes use canvas units. Rotation uses radians. Pressure and opacity range from 0 to 1. Pen input timestamps use milliseconds. Animation and audio placement use integer frames, starting at frame 0.

Object names are labels; IDs identify the artwork across renames and reordering. Read methods return values for inspection. Apply changes through a handle or production operation rather than mutating a returned value and expecting it to save automatically.

Supported workflows

Codeboard combines editable vector artwork, pixel surfaces, replayable raster strokes, layer animation, drawing substitutions, multiplane camera moves, and audio. It is a local toolkit operated through code.

Brush resource import extracts supported data; it does not reproduce another application's brush engine. Flat imported images do not acquire a rig or pose controls. Drawing substitutions do not generate in-between drawings. Codeboard does not read or write native Toon Boom project formats.

For a working starting point, use codeboard init and the quickstart.

On this page