Black Week: −40% Pixor is $19.99 $11.99 until 2 December, on itch.io →

Command line

pxr renders the same sprites as the app (the same project gives the same pixels) and suits build scripts and batch work. pxr help prints every command and option, pxr help COMMAND one command with its options, and pxr --version the version. A command line it cannot read says what is wrong, how that command is used, and to see pxr help COMMAND.

Common tasks

# One sprite, 64 px, three-quarter view
pxr render knight.glb -o knight.png

# Every clip, 8 sides, 12 fps, all export formats
pxr render knight.glb --clip all --ring 8 --export all -o out/knight.png

# Two clips, hand-picked frames for the attack
pxr render knight.glb --clip walk --clip attack --keys 0,0.2,0.35,0.6 -o out/knight.png

# A different look
pxr render knight.glb --preset selout --view isometric --light -30,50 --bands 4 --aa 1 -o knight.png

# Your palette
pxr render knight.glb --palette my-palette.hex -o knight.png

# Save the settings as a project, then render it again later (or open it in the app)
pxr render knight.glb --clip all --ring 8 --export aseprite -o out/knight.png --save-project knight.pixor
pxr render knight.pixor

# A whole folder, every clip of every model, with a report
pxr batch models/ --recursive -o out/ --ring 8 --export all

What --ring 8 gives: the crystal golem from eight sides, South first, counter-clockwise

A project is its own recipe: rendering one reads the look and the scene from it, and takes from the command line only where the files go (-o, --export, --names, --scale, --anim-scale, --no-recipe, --debug), the extra layers (--paper-doll, --piece, --parallax, --haze), the backend and which Asset pipeline it writes. Any other flag is named in a warning, since it would change nothing: set it in the project with pxr project set.

Which Asset pipeline. pxr render project.pixor writes the project’s first Asset pipeline, as the app’s Export window writes the one picked in it, which starts at the header’s; --pipeline NAME writes another, and --pipeline all every one. A file is named the same whichever is written, so --pipeline all writes exactly the files the pipelines write one by one. pxr names, pxr watch and pxr run take --pipeline too.

Where files go. -o PATH (or --out PATH; every command takes both) is where a command writes. For a command that writes one file — render, stylize, effect, voxels, shapes, rebake, project blueprint, project set (the project’s sheet) — it is that file, or a folder the file goes into under its own name when the path ends in / or is a folder that exists: pxr render knight.glb -o out/ writes out/knight.png. A project rendered with -o writes every file into that folder (D51): the project’s sheet folder (out/ by default) becomes it, a path under it keeps its place below, and any other path its last part — archives, animations and icons included. The app’s Export window runs exactly pxr render PROJECT --pipeline NAME -o FOLDER, on a copy of the project as it is open, saved or not, named as the project; --recipe-project FILE.pixor (or none for an untitled project) is what the copy’s recipe names instead of the copy. The commands that write many files — batch, golden, gbuffer, stages, icons, run --jobs — take a folder.

Clip files next to a model named <model>@<clip>.<ext> are added automatically. Other files with the same skeleton can be added with --anim FILE.

Commands

Command Does
pxr render MODEL | PROJECT.pixor a sprite, or a sheet when clips, sides or actions are asked for; a project writes one sheet per group of cameras framed together
pxr stages MODEL -o DIR a picture of every pipeline stage (albedo, normals, depth, coverage, light, bands, edges, lines, cleanup, lint…), --only edges,lines for some; --node N instead writes what node N of the Style graph makes as KIND.still.png (a CRT’s screen): a still, never a sprite or a sheet
pxr batch FOLDER -o DIR every model in a folder (.gltf, .glb, .fbx, .obj, .vox; --recursive for subfolders); failing models are reported and skipped; DIR/report.json; --blueprint B.pixorblueprint runs each model through one blueprint; --cache DIR serves the models that have not changed (see libraries). In the app, drop the folder on the window
pxr run BLUEPRINT.pixorblueprint --in model=M a blueprint with its inputs filled in (see the Scene graph); --set NODE.SETTING=VALUE changes one setting, --set PIPELINE/NODE.SETTING=VALUE the same in one pipeline alone (--set hold.times=4 every Asset pipeline’s Hold node); --jobs TABLE.csv -o DIR runs one row of a table per render; --pipeline NAME|all as for render
pxr rebake SHEET.aseprite render the project again into a sheet you painted on, keeping your layers and your edits (see Aseprite)
pxr cache stat|gc DIR what a cache holds; gc --keep 20GiB removes the renders used least recently until it fits
pxr golden CASES.txt render test cases and compare them with stored images (see below); --only TEXT runs the cases whose name holds it, --tolerance F accepts a fraction F of differing pixels, -o DIR (default target/golden) is where results go; --graph renders them through the look’s node graph instead — the preset’s as the shipped Pixelate group — and --flat through the same graph with every group flattened to atoms; both must match the same images. --cache DIR writes each case’s sprite into --out through the cache and compares that file, served or rendered; --no-cache writes the same files without it
pxr import MODEL --report what happens to the file on import, without rendering it: found, corrected and why, suggested, missing, triangles per sprite pixel; --json for a batch that finds the broken files first. A file of things set out side by side (a village, a level, a board of props) is judged as a whole: no skeleton, feet or wheels in it turn it, and its unit is its things’, not its ground’s; a scene wider than 50 m whose things are mostly 0.3 to 10 m each stays in metres, touching or not
pxr reference SPRITE.png settings read off a sprite you have: palette, size, outline, bands, hue shift, dither, each with why; pxr project set P --match-sprite S.png sets them
pxr voxels MODEL -o OUT.vox the model as voxels, --height tall (1 to 256), in the look’s palette: a MagicaVoxel file; --stack also writes a sprite stack (see Voxels and sprite stacks)
pxr nodes [--graph G] [--json] every node of the four graphs (style, action, scene, asset) as this Pixor has them: what it does, what it takes and gives, each setting with its range and default; --json for tools (the website’s node reference is built from it)
pxr inspect FILE what the importer found in any file Pixor imports (the formats, also in pxr help inspect): for a model, objects, materials, bones, clips, warnings; for a .vdb, its grids and their size; for a picture, its size; for a palette, its colours
pxr gbuffer MODEL -o DIR the raw render targets, for bug reports; the .pxrg dump carries the mesh’s edges when the look draws them
pxr stylize DUMP.pxrg run the pixel passes on a saved render, wireframe included
pxr diff OLD NEW two export folders (or two sheets): which files are new, gone or differ, by how many pixels, and, from each file’s recipe, which setting or input caused it; --all lists the identical files too, --exact exits 1 on any change. Two .pxrg dumps are compared target by target (--depth-tolerance EPS, --samples N)
pxr adapters the GPUs Pixor can use
pxr doctor what this machine can render with, and whether its GPU agrees with the CPU reference
pxr project new|set|show PROJECT.pixor create, change or print a project from scripts and tools: --name NAME names it (the header’s name, not the file’s); pxr project show prints the whole project, its name with the rest. new refuses a file that exists unless given --force. Every option set takes is in Project options
pxr project key PROJECT.pixor TARGET CHANNEL one key of a clip made in Pixor (--clip, --frame, --value, --how, --remove…), so a script can build a clip
pxr project bake PROJECT.pixor CLIP a clip of the model’s own as a clip made in Pixor, every bone keyed at every frame (--as NAME, --fps F)
pxr project scene PROJECT.pixor [NODE] the scene graph a node at a time: ring, row, grid, scatter, look-at, vary… added to the end of the chain, each node’s options named after its settings (Scene graph options); a node that takes nothing in (object, import) starts the chain in place of the bare import, and goes beside a longer chain, merged with it; no node (or --list) prints it, --set NODE.SETTING=VALUE changes a node’s setting, --drop N takes node N out, and --clear puts the graph back to the bare import
pxr project blueprint PROJECT.pixor -o B.pixorblueprint the project as a blueprint, its model, palette, prop and volume files lifted out into named slots; --name N names it (the project file’s name by default) and --about A says in a sentence what it makes
pxr style new KIT --from PROJECT save a project’s first Style as a Style kit
pxr shader MODEL|PROJECT -o DIR the Style as Godot 4 shaders, in real time (see The Style in Godot, in real time); --res res://FOLDER, --view-scale K, --partial
pxr turnaround MODEL|PROJECT -o PAGE.png a model sheet: four views at one scale, the palette, a height chart beside each --with MODEL, the sizes (see A turnaround sheet); --height PX or --ppu N, --page-scale K, --title, --background
pxr kit show FILE.pixorkit what a kit holds: a group of nodes, a Style, a preset or a pipeline
pxr names PROJECT.pixor [--names T] [--pipeline NAME|all] the names the project will write and every frame’s id, without rendering, each render’s files by their own path; two frames on one name, two renders on one file (would be written twice), or two files on one path (a paper doll’s base and the light kit’s, a palette variant and a layer), are an error here rather than a lost file later
pxr graph list|set|add|drop|wire|save|swap|flatten|extra FILE --which scene|action|style|asset any of the four graphs from a script. --pipeline NAME picks which: an action by its name, a Style or an Asset pipeline, the first unless named. Print it, change one setting, add a node into the chain (or beside it with --alone, wiring others in with --in SLOT=NODE), drop one, join two with wire --from N --to M --slot S, save it as a kit (save -o KIT.pixorkit: the Style graph whole, the scene, action or asset graph as one node, --as-pipeline a whole Asset pipeline another project uses with pxr project set --use-pipeline), put a node kit in as a group (add --kit KIT) or in place of a node (swap --kit KIT), or write a graph out with its groups expanded; extra --node N --name LAYER makes a Style node’s picture a layer of the exports too, and --drop stops it. --node (and --set NODE.SETTING in pxr run) names a node by its number, its kind, a group’s name, what its Called says (an Image file, a Sheet) or the name it was given in the app (F2); an object node is the model (of=model), and an item, a shape or a picture is a node of its own. An Asset graph’s sprites, frame-range and hold nodes are set like any other (--node sprites --set action=walk,Static — action=every-one-except-static is a new node’s, action= every action, Static too — --set smart=6, --node frame-range --set from=2 --set to=5, --node hold --set times=2); an action’s — clip, bob, spin, merge… — by kind or number, and one added without --alone plays at once, merged with what is there. In the Style graph a node goes in wired to nothing, --in SLOT=NODE and wire take it on. An edit that would leave a graph unable to run is refused, the file left as it was (see the Scene graph, the asset graph and nodes)
pxr shapes [PROJECT] -o OUT.glb write the shapes built in the app out as geometry, for a modeller or an engine
pxr icons MODELS... -o DIR inventory icons with an atlas per size; rarity from each file’s name, and --save keeps a recipe to run again (see Export)
pxr check MODEL|PROJECT|SHEET.png [-o MARKED.png] the pixel-art lint and the colour-blind check (Pixel-art lint): banding, blurry anti-aliasing (and a picture resized with smoothing), uneven steps and tiny clusters, each printed with its frame and the setting that fixes it and marked on MARKED.png (default NAME_check.png; --scale K, a PNG’s own scale by default). A model or a project is rendered, every frame; a PNG is read at the size it was drawn, frame by frame when its JSON is beside it. --checks banding,blur,steps,clusters picks which (all by default), --cluster N how big a tiny cluster may be (default 2). --colour-blind (or colour-blind in --checks) also marks colours that look alike with deuteranopia, protanopia or tritanopia where they meet, boxes parts and --variant team colours that do, and writes MARKED_deuteranopia.png and the others, the frames as each sees them (Seen with colour blindness). Exit 1 on findings. It never changes a pixel. pxr audit asks whether sheets were made the same way; this asks whether one is well drawn
pxr audit FILE|FOLDER... [--style KIT] check that exported sheets match: preset, light rig, view, pitch, light, bands, lines, palette and pixels per metre, from each file’s recipe, and with a Style kit that every colour is in its palette (exit 1 if not)
pxr watch PROJECT.pixor export again whenever the project, its model, its clip files or its palette change, once they have stood still for one check; --interval SECONDS is how often it looks (default 1, 0.05 to 60), --exit-after N stops after N exports (exit 1 when the last one failed; 0, the default, watches until Ctrl+C), and -o, --export, --godot-path and --pipeline go to every export, as for render
pxr effect KIND[:FRAMES][,KEY=V...] a pixel effect on its own: explosion, hit-spark, slash, magic-burst, heal, portal, smoke-puff, dust, fire-loop, rain, snow, fireflies, falling-leaves, breath, jet, embers, lightning, shockwave, ground-slam, debris, charge-up, whirlwind, sparkle, level-up, confetti, coin-burst, blood, splash, ripple, frost-nova, teleport, muzzle-flash, stun-stars, poison-cloud, fireball, magic-missile, aura, steam, spark-shower, soul, trail (a stroke of light along 1.path=; a fireball, magic-missile and muzzle-flash fly along +x), beam, shield, with --effect’s settings (pxr effect breath,ramp=frost,axis=+x); a recipe chains effects with >, each next KIND[:N][@land][+F][,KEY=V...] starting F frames after the first, or after it lands (pxr effect "fireball:12,path=0,3,0:4,0,0>ground-slam@land>fire-loop@land+2")
pxr console list|check SHEET.png the console modes, or whether a sheet fits one (exit 1 if not); the console comes from --console or the sheet’s recipe

Render options

Option Default
--view VIEW the preset’s side, three-quarter, isometric or top-down
--pitch DEG the view’s degrees below the horizon
--yaw DEG 0 turn a single sprite, or the one side of a sheet of one: the model turns about +y, 90 facing right, as --sides 90
--camera GENRE a game’s camera: platformer, fighting, beat-em-up, adventure, top-down-rpg, action-adventure, isometric, tactics, strategy, racing, top-down-shooter, shmup, icon (view, pitch, turn; size and sides unless given)
--camera-yaw DEG 0 turn the camera about the model, every side
--size N 64 fit into N x N, 4 to 2048; --size 960x540 fits into a canvas that wide and high (a title image, a background)
--pixels-per-metre F fixed pixels per metre instead of --size, 0.5 to 4096 (the app’s Pixels/m); with --size too, that canvas at that scale, what is outside it cropped (several models drawn at one scale in cells of one size)
--up AXIS decided on import the axis that points up in the file (y, z, -z, x, -x, -y): for a model exported lying down
--import-scale F, --import-offset X,Y,Z decided on import the unit and the move, said by hand
--no-import-fix render the file exactly as it is, with nothing corrected
--samples N 4 samples per pixel along each side, 1 to 8 (the app’s Samples)
--margin PX 1 empty pixels kept round the fitted sprite (the app’s Margin, a project’s with pxr project set --margin), past its outer line (an outline drawn outside, and what a Line weight node draws beyond it, get room of their own): room for effects and parts the fit leaves out
--light AZ,EL -45,45 key light relative to the camera
--light-space S camera world: the light stays put in the scene instead of following the camera
--fill F the preset’s fill light strength, 0 to 1
--no-shadow no cast shadows
--bands N the preset’s light bands, 1 to 4
--palette P a .hex, .gpl or .png file, or a built-in palette: pixor-16, pixor-8, dusk-12, forest-12, desert-12, ice-10, mono-8
--aa N 0 anti-aliasing: 0 off, 1 silhouette, 2 every line
--match-space S oklab how colours find their nearest in a fixed palette: oklab, srgb or weighted
--dither-pattern P bayer bayer (the crosshatch) or blue-noise (scattered evenly); either stays on the surface as the model moves
--even-stairs off straight silhouette edges with even steps (2, 2, 2 rather than 3, 1, 2)
--smear PX 0 smear frames, 0 to 64: what moved PX pixels or more since the frame before trails behind
--subpixel off sub-pixel motion: an edge that moves by less than a pixel takes the next darker colour of its ramp while the model covers only part of it (project set --no-subpixel turns it off)
--nudge X,Y 0,0 move the model a fraction of a pixel on the grid (each -0.5 to 0.5); only the sampling changes
--foot-plant off a humanoid’s planted feet on the same pixel row in every frame of a clip
--preset NAME clean clean, selout, retro4, flat, wireframe, or a saved preset kit (.pixorkit)
--style KIT a Style kit (.pixorkit): a whole Style (pxr style new, a Style’s Save kit…), its Style graph too, or a Style graph alone (pxr graph save --which style); later flags still change it. In a golden case file, relative to it. pxr icons and pxr audit take the same
--dither F 0 ordered dithering between neighbouring light bands, 0 to 1
--line-colour HEX the preset’s colour of Dark lines, #rrggbb (automatic palettes only)
--no-lines MATERIAL no lines around this material (repeatable; pxr inspect lists them)
--fade NAME=SPEC erode how a material, else a part, fades as its opacity falls: erode (from its edge in), dither, rim (its middle first, its outline last) or shrink, and AXIS:FROM:TO for an opacity falling along it (up:0.4:1: whole to 40 %, gone at the top); both as dither:up:0.4:1 (repeatable; Model files)
--lines MATERIAL=WHICH all which lines a material gets: all, outer (round it and where it meets another part, none on the folds and overlaps inside it: craggy rock, crystals, low-poly props whose facets are shading, not shape) or none (as --no-lines); repeatable
--casts MATERIAL=M the file’s a glowing material lights what is within M metres of it, from the middle of each part of it, as pxr.casts (0: only itself; repeatable)
--glow-shape MATERIAL=flat lit shade a glowing material from its own outline on screen to a hot middle, in even rings of its ramp, whatever its curve: a glowing sphere reads as light, not a glossy ball, and a flat plate gets a white-hot core (lit undoes it; repeatable; Model files)
--soft MATERIAL[=S] 0.7 shade this material’s balls as one soft billow, 0 to 1: smoke, dust, steam and clouds built of balls (repeatable; Model files)
--material-colour MATERIAL=#RRGGBB draw this material in another colour than the model file’s: its shades, lines and the palette follow (repeatable; quote a name with spaces)
--material-ramp MATERIAL=#RRGGBB,#RRGGBB,... draw this material with its own 2 to 8 shades, dark to light, instead of the file’s: a palette swap, so one model comes in many hand-made colourways (repeatable)
--crease-angle DEG 55 how sharp a fold draws a crease line, 1 to 179
--depth-step PX 2.5 the depth step, in pixels, that draws an inner line, 0.1 to 40 (the app’s Depth step)
--shortest-line N 3 the shortest inner or crease line kept, 0 to 16 pixels (the app’s Shortest line)
--no-part-lines no lines between touching parts without a depth step
--outline-inside the silhouette on the sprite’s own edge
--outer LINE the preset’s the silhouette: none, dark or seloutN (N steps down the ramp of the pixel it is round)
--inner LINE the preset’s lines where a surface passes in front of another or two parts meet: none, dark or seloutN
--convex LINE none a light line on folds that bulge towards the camera: none, dark or highlightN
--no-material-channels ignore a glTF material’s metal, roughness, emissive, unlit and see-through, and shade from its colour alone
--backend B auto auto, vulkan, metal, dx12, gl, webgpu or cpu (see Choosing a renderer)

Light and colour options

Option
--rig NAME a light rig: noon, dusk, torchlight, moonlight, studio or pickup. pickup is for icons and pickups that turn or flip (a coin, a crate, a missile seen top-down): a key light from the front left, a strong fill from the other side, rim lights and no cast shadows, so no side of the turn goes dark
--cycle MATERIAL cycle this material’s colours on a --colour-cycle action (repeatable)
--glints SIZE[:ABOVE] the shine’s glints: a small crisp glint on each polished face turned to the light, travelling across it as the model turns. SIZE auto (by the face), 1, 2 or 3 pixels; ABOVE how square to the light a face turns first, 0.5 to 0.999 (0.75). on takes them as they come; a part left empty keeps its default
--sparkle COUNT[:SIZE[:FRAMES]] four-pointed stars on the brightest glints, COUNT a loop (1 to 8), each growing to arms SIZE long (auto, or 1 to 4) and back over FRAMES frames (1 to 12; 4), white, at the edge of a highlight where it shows. on: one a loop
--shine-sweep ANGLE[:WIDTH[:STEPS[:EVERY[:START]]]] a band of light crossing the polished surfaces once a loop: its slant in degrees (60; 90 upright), WIDTH pixels (auto), STEPS up the ramp (1 to 3; 1), EVERY frames a crossing (0: the loop), START 0 to 1 (0: across the middle at the first frame). on: as it comes
--no-shine
--shiny MATERIAL|all the materials that shine (repeatable); by default every metal (glTF metallic 0.5 or more) and glossy surface (roughness 0.3 or less). all: every lit surface
--team MATERIAL|#RRGGBB the team colour: a material, or every ramp of that colour’s hue (repeatable); --variant team:blue recolours only it
--console C a console mode: gameboy, nes, megadrive, pico8, tic80, c64 (see Console modes)

Animation options

Option
--clip NAME a clip to render (repeat for more), or all
--anim FILE also use the clips of FILE
--ring N sides, counter-clockwise from the front (1 to 64, default 1), named South, Southeast, East… (a ring of 16: South, SSE, Southeast, ESE, East… the eight points keeping their names; other counts d0, d1…): a camera each, sharing one size, in one sheet
--sides A1,A2,... a side at each angle instead, in degrees (0 = front, 90 = facing right)
--ring-node NODE[:N] turn only NODE, and what hangs under it, through N headings (default: --ring’s count, else 16) while the rest of the model stands at the first side: a tower’s head aimed over its fixed base. Each side is named for the heading it shows; the JSON names the node and gives its pivot as a socket on every frame (see Parts that turn on their own)
--fps F frames per second of clip time (default 12), the cut of every Sprites node
--fps CLIP=F a frame rate of its own for one clip (repeatable, beside --fps F): --fps 12 --fps Strike=20 draws a fast strike at 20 a second and the walk at 12. Its holds, hit-stops and events are counted in its own frames at that rate, and the JSON’s durations follow. In a project, a second Sprites node with its own Frames/s does the same
--keys T1,T2,... hand-picked clip times, in seconds, the cut of every Sprites node
--clip lib:NAME a motion library clip fitted to the model’s skeleton: idle, walk, run, jump, attack, hit, death
--parallax N split the picture by depth into N layers (2–8) for scrolling backgrounds (see Scenes of several models)
--haze #RRGGBB the colour far parallax layers fade towards; none keeps every layer on the palette as it is
--portraits SPEC also draw dialogue portraits: the bust in each expression and its talk frames, a row each, in the sheet’s palette, as NAME_portraits.png and NAME_portraits.json. SPEC is [SIZE|WxH][,EXPRESSION[:ACTION@FRAME]]...[,talk=N][,turn=DEG][,pitch=DEG][,jaw=DEG], e.g. 96 or 128,neutral,happy,hurt:hit@2,talk=2; pxr project set --portraits SPEC puts a Portraits node in the project, --no-portraits takes it out (see Dialogue portraits)
--spring NODE[:S,D,G] NODE and what’s below it swing with the motion: stiffness, damping, gravity (repeatable); in a project, a Spring node of the scene graph
--smart-frames N keep N frames of each clip, chosen from its poses (each held until the next; a walk or a run has its two steps cut alike), the cut of every Sprites node
--once CLIP, --loop CLIP clip CLIP plays once or loops (repeatable), whatever the model’s hints (once, loop, Model files) and the clip’s name say: without them a death, hit, jump, collect, break, open, pop, burst or destroyed plays once. A clip that plays once has "repeat": "1" in the JSON’s frame tags
--root-motion M keep (default), in-place (pin the root bone horizontally) or in-place-sway (remove only the clip’s net travel)
--turntable N add an action of N frames turning the model once
--turntable-seconds S how long that turn takes (default: N frames at --fps)
--motion M[:N[:A]] add a loop: spin, bob, swing, pulse, squash or flicker, N frames, strength A (for spin, the part of a turn the loop makes: spin:8:0.125 turns a gem of eight facets by one facet, a seamless loop)
--colour-cycle N add an action of N frames turning the cycling materials’ shades
--timing [S][,anticipation=A][,overshoot=O][,squash=Q][,time=T] play every clip and action through a Timing node: a wind-up before each fast move, an overshoot past where it stops and a squash on landing, from how fast each part moves; S is the strength (default 1, 0 to 4), A, O and Q scale each effect (0 turns it off), T the seconds a wind-up and a settle take (default 0.1). pxr project set --timing puts it on every action of the project, --no-timing takes it out (see Anticipation and follow-through)
--gait [KIND][,speed=S][,stride=L][,lift=H][,body=B] add an action called gait: one looping cycle made from the rig, its legs found where the bones reach the ground, each foot planted while down and swung while up, the body carried. KIND is auto (the default: a walk on two or four legs, tripod on six, wave on eight, slither or hop with none), walk, trot, tripod, wave, hop or slither; S is in leg lengths a second (1.6), L leg lengths a cycle (1), H a foot’s lift in leg lengths (0.2), B the body’s bob and sway (1). A gait on legs on a model with none is a usage error that says why. pxr project set --gait adds it to the project, --no-gait takes it out (see Gaits for any creature)
--prop FILE:BONE[@at=X,Y,Z][@turn=X,Y,Z][@scale=S][@grip=NODE] attach another model to a bone, held by its grip, moved and turned on the bone’s axes (see Props on bones)
--shape SPEC add a shape: [NAME=]KIND[:SIZE[:AT[:#RRGGBB[:TURN]]]], e.g. box:1,0.5,1:0,0.25,0:#c86432, or wheel=cylinder:0.5,0.2,0.5:0.7,0.25,0.5:#14101c:90,0,0 for a named wheel on its side (repeatable). KIND is box, sphere, cylinder, cone, torus, plane, capsule, wedge, pyramid, prism, stairs, arch or letters (pxr help render lists them from the same list the flag reads): letters is the font’s pixels extruded into blocks, spelling PIXOR, or a project’s words, pxr project set --add-shape letters --words WORDS --font NAME (render takes no --words)
--volume SPEC add a volume: puff, flame, cloud, mist or a .vdb path, then [:SIZE[:AT]] (a file without a SIZE is drawn at the size it was baked; SIZE measures what it draws, not its domain), then [:FRAMES[,EVERY[,LOOP]]] for a numbered .vdb sequence, then any setting as :KEY=V (heat_max=, heat_each_frame=on…) or :on=NODE to ride a bone or part and turn with it, then @BONE to be carried by a bone, upright, or @effect:N by the Nth effect’s emitter (Volumes)
--wire LINE the wireframe look: none, dark or seloutN, with --wire-fill, --wire-hidden, --wire-angle (0 to 180), --wire-all-edges and --wire-glow MATERIAL (settings)
--light-sweep N add an action of N frames moving the light
--effect KIND[:N][@CLIP[:NODE]][+F][,KEY=V...] add a pixel effect (repeatable, each with its own settings). With @CLIP it is drawn over that clip’s own frames from frame F, riding NODE (a bone or part, or item N / item N: BONE for an item) as it moves and turns, and the clip keeps its frame count; without, it is an action of N frames of its own. Settings, in any order: size= (how far it spreads; its particles grow as the square root and become more), energy=, density= (how many particles, against its own number), seed=, at=X,Y,Z (metres along NODE’s own axes from where it starts: NODE’s pivot, or for breath, jet, lightning, fireball, magic-missile and muzzle-flash the far end of what NODE carries along the axis), axis=X,Y,Z or +x..-z (where those point, in the file’s axes: +y up, the model facing +z; a bone’s length is +y), or forward, back, up, down, left, right (the model’s own ways), axes=blender (read at= and axis= in Blender’s axes, Z up and -Y forward), ramp= a named ramp (fire, frost, snow, poison, lightning, sparkle, magic, shadow, water, smoke, dust, blood, heal, wind, energy, spirit, steam, stone), #rrggbb colours dark to light or a material of the model, hit=F (the frame that lands, in the JSON), stop=F (the frame of its clip it is gone from, a loop’s repeats fitted before it and dying down by it), once (a loop played once over its own frames, from nothing to nothing), every=N (start again every N frames of its clip, a loop’s last plays going round into its first frames), on=EVENT (start at every frame event of that name: dust on each footfall), world (particles left where they were born rather than riding the emitter: tyre smoke, exhaust), size=64px, size=1.1h or size=node (pixels across at its biggest, times the model’s height, times the width of its node), at=ground (on the floor under where it would be), path=X,Y,Z:X,Y,Z:... and arc=H (the emitter flown along a smooth curve, metres from where it starts, rising H metres at its middle), land=KIND (an effect started where the path ends), to=X,Y,Z or to=NODE (a beam or lightning pinned to a point or a node), length=M (a beam’s length), light=R (its emitter a lamp reaching R metres while it plays), node=, fit / fit=no (whether it counts toward the fit; with fit=no it is cut at the cell’s edge; drawn in a clip it gives that clip’s cells room, as big as it reaches, at the sheet’s scale, unless it is weather), alone (without the model) and N.KEY=V, a setting of its Nth kind of particles (2.gravity=-3, 1.life=0.2,0.4, 1.colours=frost; one past its last adds particles: its own particles). The sheet is fitted to the model alone and an effect grows only its own clip’s cells to hold it; with fit=no it is cut at the cell’s edge (Pixel effects)
--blur PART,... parts spinning too fast to draw sharp (rotors, fans, propellers, saws): each frame draws thin curved streaks trailing the blade tips in their colour, turning with them, and a faint 1 px rim, the blades solid over them, nothing dithered, as a part’s pxr.blur says. pxr project set --blur keeps them in the project, --no-blur takes them out; Spin blur in a part’s Inspector
--fit-ignore PART,... fit the sheet without these parts (a flash or a thrown ball made of geometry): drawn, cut at the cell’s edge. pxr project set --fit-ignore keeps them in the project, --fit-all takes them out; a part’s pxr.fit: false in the model says the same
--hitbox PART, --hurtbox PART, --socket BONE boxes and bone positions per frame in the JSON (repeatable; see Export)
--paper-doll, --piece NAME:PARTS[,ring=N][,node=NODE] paper-doll layers (see Export); a PART may name a node, for every part under it, and ring=N draws the piece alone on a ring of its own, its node turned through N headings, over a base that keeps the sheet’s sides (see Parts that turn on their own)
--item MODEL@X,Z[,YAW,SCALE[,LAYER]][,y=H][,ramp=MATERIAL=#RRGGBB,...][:CLIP[,PHASE]], --ground W,D[,#RRGGBB] more models beside the first, each an Item node of the scene graph in a project, y=H metres up off the ground, ramp=MATERIAL=#..,#.. its own colours for a material of it (a ramp dark to light, or one colour its shades are made from; only this item’s copy changes, so one army’s tanks are red and the other’s blue; the Item node’s Its own colours), each playing its own clip beside the model’s; MODEL is read from the working directory, then from beside the render’s model, and may hold @ itself (knight@walk.glb@1,0: the place follows the last @ that a number follows); with no model (-) the items’ clips time the sheet; and a ground plane under them (see Export)
--chunks COLSxROWS write a big map as chunks with exact seams; --chunk-margin N (default 8)
--frame X0,Z0,X1,Z1 a game camera placed by hand: the ground rectangle, in metres, the canvas shows, whatever is drawn over it. With --size WxH the zoom follows, with --pixels-per-metre the canvas does; an effect reaching higher or a vehicle driving off neither moves nor grows the picture. See A camera that follows
--follow NODE[,smooth=S][,clamp[=BOX]] a game camera that keeps NODE (a bone, or a part’s own node: pxr inspect lists them) in the middle of the canvas on every frame, moved by whole pixels so the world never swims; smooth=S lets it catch up over about S seconds (0 to 10; 0, the default, keeps it on the middle pixel). See A camera that follows
--max-flicker F warn above this flicker share (e.g. 0.01); in a golden case, fail
--require-visible OBJECT warn if OBJECT disappears in any frame

A camera that follows

A gameplay render wants the game’s own camera: a fixed canvas at the game’s scale, keeping the player in the middle as it walks through a scene much bigger than the screen. Give the canvas and the scale, the clip, and the node to follow:

pxr render village.glb --size 320x180 --pixels-per-metre 16 --view three-quarter \
  --clip Walk --fps 12 --follow Hero,smooth=0.5 -o walk.png

Each frame the camera moves to the node’s place, eased over smooth seconds, and is then rounded to whole pixels: the world under it moves by whole pixels from frame to frame, never by a fraction, so nothing in it shimmers or swims; only what really moves (the walker) moves on its own. The first frame starts on the node. On a still (no clip), the node at rest is put in the middle. Above, a walker crossing a village with --follow Walker,smooth=0.5; below, the same camera standing still:

A 192 x 108 camera following a walker across a village, eased, and the same camera standing still

The camera following the walker, as a loop

Inside the world. --follow Hero,clamp never shows past the ground (--ground, else the whole scene): near an edge the camera stops and the walker goes on towards it, and a ground smaller than the canvas is centred. clamp=Arena stays inside a part or node of that name and what hangs under it.

A camera placed by hand. --frame X0,Z0,X1,Z1 shows a ground rectangle, in metres, whatever is drawn over it: a gameplay screen exactly 480 x 270 at one scale, where a lightning bolt reaching higher than the props, or a tank driving off, neither moves nor grows the picture:

pxr render arena.glb --size 480x270 --frame -15,-8.5,15,8.5 --clip Fight
pxr render arena.glb --pixels-per-metre 16 --frame -15,-8.5,15,8.5 --clip Fight

With a canvas size the zoom follows the rectangle; with a scale the canvas does (30 m at 16 px a metre is 480 px wide). The rectangle fills the canvas edge to edge, with no margin.

Export options

Option
--export LIST comma-separated or repeated: png, json, aseprite, normal, depth, emission, layers, palette, godot, godot-scene, gif, apng, webp, light-kit, p8, 2bpp, chr, md, twitch, discord, 7tv, wallpaper, report, video, or all (every one but p8, the console tiles, video, webp, the emotes and wallpaper, which are written only when named); the PNG is always written (see Exporting). render, batch, run, watch and project set read it the same way
--layout L grid (a row per action and side, the default) or strip
--padding N transparent pixels between cells, 0 to 256 (default 0)
--extrude N repeat cell edges N pixels outward, 0 to 64 (default 0)
--pot power-of-two sheet size
--godot-path RES where Godot finds the sheet (default res://<png name>)
--anim-scale K integer scale of the GIF, APNG and WebP files, 1 to 16 (default 1)
--gif ORDER what the GIF, APNG and WebP files play (repeatable; a GIF is written unless --export asks for APNG or WebP): clips (one file per clip and side, the default), reel[,hold=MS] (one per side: every clip in turn, each once, its last frame held MS longer, default 400: NAME_reel_South.gif) or turn[:F] (one per clip: it plays on while the sides go by, F frames on each, default 2: NAME_Fly_turn.gif). See Reels and turning GIFs
--video-scale K, --video-fps N, --video-background #RRGGBB how the videos are written: scale 1 to 16 (default 4), 1 to 100 frames a second (default 30), what the sprite is drawn over (default black)
--trim cut each cell down to its pixels (the JSON and Godot file keep the placement)
--dedupe store identical frames once
--max-width N start a new row before the sheet gets wider than N pixels (0 to 65536; 0: no limit)
--columns N N frames per row, every clip running on after the last: a contact sheet
--max-height N split a sheet taller than N pixels into pages, whole clips to a page (NAME_1.png, NAME_2.png; 0 to 65536)
--wrap-height N keep a sheet no taller than N pixels in one file: its rows go on in another column of whole rows beside the first, the JSON giving every frame’s place (0 to 65536)
--variant NAME also export a palette variant (repeatable): an effect such as hit-flash or night, hue:DEG, team:COLOUR (a name or #rrggbb; needs --team), or palette:NAME|FILE; adds an index sheet and a lookup texture
--light-variant NAME[,NAME] also draw the sheet again under another light, in that light’s colours: night, torch, underwater, poison (repeatable; the same as --variant light:NAME); written as NAME_light-night.png with its own JSON and files. pxr project set takes it too (in place of the project’s lights), and --no-light-variants. See Lighting variants
--shadow KIND also write name_shadow.png: contact or drop
--names TEMPLATE how the files and the JSON keys are named: a pattern over {project}, {object}, {action}, {side}, {layer}, {set}, {size}, {index} and {ext}, with {index:3} padded to three digits (see Exporting)
--no-recipe don’t store the recipe (how the sheet was made) in the PNG and .aseprite
--scale K upscale the PNG K times (previews only; not with other formats)
--save-project FILE.pixor also write this command line as a project
--debug DIR render targets, palette, lint and flicker images

Project options

pxr project new and pxr project set take the render, light, animation and export options above and keep each in the project — a Style’s setting, a camera, an action, a node of a graph — so pxr render PROJECT.pixor gives the same sheet again and the app opens it as it was left. pxr help project lists them all. The world, pictures and words and volumes have options of their own on those pages. What an option adds, another takes out:

Option
--add-clip NAME, --remove-clip NAME one more of the model’s clips to render, or one fewer, the others left as they are (--clip sets the whole list again); a clip the model does not have is an error that names those it has
--add-motion M[:N[:A]], --no-motions add a loop as --motion makes it (spin, bob, swing, pulse, squash, flicker), in place of one of the same kind; --no-motions takes every such loop out
--no-turntable, --no-light-sweep, --no-colour-cycle take out the action --turntable, --light-sweep or --colour-cycle added
--no-palette back to an automatic palette, built from the model’s own colours
--no-rig no light rig: the preset’s lights again
--no-cycle, --no-team, --no-shiny forget every material --cycle, --team or --shiny named (with no --shiny, metal and glossy surfaces shine, as they do by default)
--no-glints, --no-sparkle, --no-shine-sweep no glints, no sparkles, no sweep: each turned off in the project’s Style
--cast-shadows cast shadows again, after --no-shadow
--material-channels read a glTF material’s metal, roughness, emissive, unlit and see-through again, after --no-material-channels
--no-even-stairs, --no-foot-plant the look’s own silhouette steps, and feet left where the clip puts them, after --even-stairs and --foot-plant
--no-springs, --no-anims take out every Spring node, and every clip file --anim added
--no-items, --no-ground, --no-props, --no-shapes, --no-volumes, --no-pictures take out of the scene every item, the ground, every prop, every shape, every volume, and every picture and text card
--no-cameras keep the first camera and remove the others
--add-lamp X,Y,Z[:RANGE[:STEPS]], --no-lamps a lamp at X,Y,Z, reaching RANGE metres (3) and lifting a surface facing it by up to STEPS ramp steps (2), repeatable; with it, --falloff F how sharply it dims (1 linear, 2 quadratic, 0.5 a slow wash; 1.5), --cone DEG a spot, lighting up to DEG degrees either side of --aim X,Y,Z, the direction it points (straight down, 0,-1,0), and --lamp-bone BONE the bone that carries it, a torch in a hand (lamps); --no-lamps takes every lamp out
--no-boxes no hitboxes, hurtboxes or sockets in the JSON
--paper-doll, --no-paper-doll write the paper-doll layers with every export of the project, or stop
--trim, --no-trim, --dedupe, --no-dedupe, --recipe, --no-recipe cells cut to their pixels, identical frames stored once, the recipe kept in the files: each turned on or off for the project’s sheets
--no-variants write no palette variants and no lighting variants
--no-shadow-layer write no NAME_shadow.png, after --shadow
--default-names name the files the default way again, after --names

Scene graph options

pxr project scene PROJECT.pixor NODE adds the node with its settings given as options; any it is not given keep the node’s defaults (pxr nodes --graph scene lists them):

Node Options
ring --count N (8), --radius R (3 m), --start DEG where the first stands (0), --centre X,Y,Z the middle of the circle (0,0,0); they face the middle (--face-in, the default) or away from it (--face-out)
row --count N (4), --step X,Y,Z from one to the next (1.5,0,0 m; one number is along X)
grid --cols N across and --rows N deep (3 and 3, 1 to 256), --step X,Z (1.5,1.5 m)
scatter --count N (8), --box X,Y,Z the box they are scattered in (6,0,6 m), --apart D the distance no two come closer than (1 m), --seed N
look-at --at X,Y,Z the point they face, --offset DEG turned on past it (Turn more)
vary how far each object’s clip phase (--phase F, 0 to 1; 0.25), turn (--turn DEG, up to 180; 0) and size (--size F, a share up to 1; 0) may differ, and --seed N
move --by X,Y,Z in metres, --turn DEG about the up axis, --size F times
mirror --axis across|up|forward the plane’s axis (across by default), --at F where the plane stands along it
subdivide, displace, height-field --times N (1 to 4; 2); --amount M how far the surface moves (0.05 m, 0.5 m for a height field), --bumps M or --hills M how far apart (0.25 m, 1.5 m), and --seed N
attribute --name NAME (n), --from what the number is read from (index, x, y, z, distance, turn, size, noise), --times F and --plus F
set-shape --setting S (size, width, height, depth, segments, bevel, hue), --from NAME the attribute it is set from, --times F, --plus F
select --name NAME the attribute, --how above|below and --at F the number it is tested against
object, on-surface, on-points --of WHAT: the thing it stands for, or the thing whose surface or corners it uses (model by default); on-surface also takes --count N (16), --seed N and --all-faces (the sides too, not only the tops), and both --tilt F, how far an object leans with the surface (0 to 1)
drop-to-ground --on NAME the thing it drops onto (any by default), --lift M how far above it, --tilt F how far it leans with the slope (0 to 1)
seen-by, bevel, play --camera NAME; --width W in metres (0.05); --clip NAME

Golden tests for your own pipeline

A cases file lists one render per line: a name, a model or project path (relative to the file) and options.

hero-walk   models/hero.glb --clip walk --ring 8 --max-flicker 0.02
hero-proj   hero.pixor

pxr golden cases.txt --bless stores the results as NAME.png next to the file; later, pxr golden cases.txt fails when any pixel changes, when a sprite has lint findings (stray pixels, L-shaped line corners, 2 px lines), or when a --max-flicker or --require-visible check fails; the error says which cases’ pixels differ (their NAME.actual.png and NAME.diff.png are in target/golden) and which failed their checks. --bless stores the images even when a check fails, and exits 1 naming those cases. Use it to notice when a model change alters your sprites.

A library, not a run

A studio renders the same five thousand sprites again because one ramp moved. Three things make that a decision rather than an overnight job.

A cache that outlives the process. --cache DIR on pxr batch and pxr run keeps every render it makes, with the files it read and a hash of what was in them: the model, the clip files beside it, the textures a .gltf points at, palettes, kits, pictures and volumes. The next run serves every render whose files still hash the same, and renders the rest.

pxr batch models/ --cache .pxrcache --out out/     # renders what changed
pxr cache stat .pxrcache
pxr cache gc .pxrcache --keep 20GiB                # least recently used go first

The cache is never the source of truth: --no-cache gives the same bytes, a stored file that does not hash to its name is rendered again rather than served, and a new build of Pixor starts a new cache rather than trusting the old one.

A job file. A table with one row per render, one column per slot of the blueprint, and optionally name (the row’s folder), out (its sheet under --out) and NODE.SETTING columns (a --set for that row):

model,name,palette,sprites.fps
heroes/knight.glb,knight,palettes/steel.hex,8
heroes/mage.glb,mage,palettes/robes.hex,

Here sheet.pixorblueprint comes from pxr project blueprint sheet.pixor, a project of heroes/knight.glb with a palette, so its slots are model and palette; the knight is cut at 8 frames a second and the mage, its cell empty, at the blueprint’s own rate. Every row writes out/NAME/NAME.png.

pxr run sheet.pixorblueprint --jobs assets.csv --cache .pxrcache --out out/ --jobs-report report.json
pxr run sheet.pixorblueprint --jobs assets.csv --cache /shared/cache --out out/ --rows 400..   # the second machine, of 800 rows

Paths are relative to the table. A row is exactly pxr run with the row’s --in and --set added, so a row that goes wrong can be run on its own. A failing row never stops the others: the report lists every row with whether it was rendered, served from the cache, or failed and why, and the job exits 1 at the end if any did.

Budgets as flags. --max-pixels N, --max-memory SIZE and --max-time DURATION hold per render (per row, per model). What the plan already knows — how many pixels a sheet will have, about how much memory it will hold — is checked before anything is drawn; time and memory are checked between frames. Going over one exits 6 with what it was and where it stopped; in a job the row fails with that reason and the others go on.

pxr run sheet.pixorblueprint --jobs assets.csv --out out/ --max-memory 1.5GiB --max-time 5m --max-pixels 16M

Long clips. A clip’s frames are drawn, then finished together, since the passes that keep a clip from flickering look along it. What they read is kept within 512 MiB (half of --max-memory when it is given), a few sides at a time; a clip too long for even one side is kept on disk while it is drawn — under ~/.cache/pixor/spill, or PXR_SPILL_DIR — and read back as needed: the same pixels, slower, and the folder goes when the render does.

Big sheets. A sheet keeps every finished frame until its files are written, so a ring of 16 sides at 64 px (80 million pixels) is most of what a render holds. Each frame lets go of what none of the files asked for reads: its depth without a depth sheet, its object and material ids without a report, a paper doll, pieces, props or --require-visible (an asset graph’s plan keeps everything). That is about 7 bytes a sheet pixel in place of 15: the same files, about 1 GiB for that sheet.

Exit codes

Code
0 success
1 a failed render, export, batch model, job row or golden case
2 a usage error: the message, the command’s usage and see pxr help COMMAND on stderr
3 an input that couldn’t be read: a model, project, palette, kit, case file or dump
4 a backend asked for by name that is not there
5 an output that couldn’t be written: a file or a folder
6 over a --max-pixels, --max-memory or --max-time budget
7 a re-bake that kept paint it will not decide about alone (--resolve keep|pixor)

No GPU at all is not an error: Pixor draws on its own rasterizer instead. An error says what was wrong the same way everywhere: --flag takes A to B, got X.

Choosing a renderer

--backend auto|vulkan|metal|dx12|gl|webgpu|cpu says who draws the geometry. The look — every pixel pass — is worked out on the CPU whatever this says.

  • auto (the default) takes whatever the machine has, and falls back to the CPU when no adapter works.
  • cpu is Pixor’s own rasterizer. It needs no adapter and no driver, it is in the binary, and it draws the same pixels on every machine — the portable choice for an asset pack or a CI build.
  • A backend named and not there is an error (exit 4), because silently rendering somewhere else is worse than saying so.

Every export’s recipe records which backend drew it. pxr doctor prints the adapters found, the one Pixor would pick, the driver versions, and whether that backend draws the same picture as the CPU reference:

adapter  NVIDIA GeForce RTX 3070 Ti (Vulkan, DiscreteGpu) driver NVIDIA 610.57.04
backend  vulkan (NVIDIA GeForce RTX 3070 Ti (Vulkan, DiscreteGpu))
agrees   vulkan vs the CPU reference: coverage 0.00%, ids 0.00%, albedo 0.00% (allowed 1.00%); normals within 0.028 deg, depth within 9.5e-7

In the app the same choice is Preferences › Renderer › Draw sprites on the CPU, or for one session pixor --backend B with the same names as pxr (cpu, auto, or a GPU backend by name), which leaves the preference as it is. Each keeps what it drew: switching to the other renders the frames again, and switching back brings the first one’s frames back without a render, as long as nothing about the scene changed.

The app from a command line

pixor FILE opens the app on a model, a picture, a project or any other file it opens (handed to the Pixor already running, if there is one). pixor --model NAME starts on one of its own samples instead: golem, chest, bat or windmill. --scale N sizes the interface for this session without changing the preference, --backend B is above, and pixor --register-file-types does what Help › Open Pixor’s files with Pixor does and quits, for an install script. pixor --version prints the version.

Environment variables

Variable
PXR_DATA_DIR the app’s own folder — preferences, autosaves, crash reports — instead of ~/.config/pixor (Linux), %APPDATA%\Pixor (Windows) or ~/Library/Application Support/Pixor (macOS). A file called portable.txt beside the program keeps it all in pixor-data there instead, whatever this says
PXR_LIBRARY_DIR the library folder, instead of Documents/Pixor/Library
PXR_ASEPRITE the Aseprite program, when the one chosen in Pixor is not set; then aseprite on the PATH and the usual Steam, itch and installer places are tried
PXR_TEMP_DIR where the app writes what an Asset graph’s file node generates when you ask for it, instead of the system’s temporary folder
PXR_SPILL_DIR where a clip too long to keep in memory goes while it is drawn (Long clips)
PXR_RESOLVE_BUDGET how many bytes a clip’s frames may hold in memory before they go to disk, in place of the 512 MiB (or half of --max-memory)
PXR_DUMP_GBUFFERS a folder: pxr also writes every frame’s render as a .pxrg dump there (CAMERA-SIDE-FRAME.pxrg), to compare two machines with pxr diff

For tools and scripts

Add --json to any command: standard output then carries one JSON event per line (progress, wrote, warning, error, done) and the readable log moves to standard error. The commands that read rather than write give what they print as one event too: inspect, adapters, graph list and graph flatten, and diff of two dumps.

What this page describes is in the full version; the free browser demo keeps to the default look and the PNG sheet.

Try in browser Get Pixor