Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Portrait

const Portrait: object

Defined in: client/api.d.ts:4736

Off-screen avatar portraits: renders a dressed dummy to a PNG (+ alpha matte).

busy(): boolean

True while a capture is in flight.

boolean

capture(request?): boolean

Queues a capture; false if one is already running. Multi-frame — poll busy()/result().

object

{ subjectId: 0 for yourself or a player’s id, look: a saved look (LookJson or its JSON text; wins over subjectId), transmog: a disguise character id rendered instead of the look, framing: ‘face’|‘bust’|‘waist’|‘body’, pose (‘live’ = their current emote, ‘’ = none, i.e. the bind pose), name, gaze, matte, size }

boolean

lastImage(maxBytes?): string

The last color PNG as a data: URI for a Web view, or ‘’ if absent/too large. Use a small capture size for previews.

number

Size cap; default 4 MiB.

string

result(): string

The last completed capture’s status line, consumed on read.

string

tune(settings?): object

Art direction, set once rather than per call. Returns the settings in effect.

object

{ fov, rigScale, keyScale, fillScale, rimScale, supersample, backdropCm, backdropColor, backdropGradient, isolate, srgb, eyeLineBias, settleTicks, poseTicks } — any subset. Colors are ‘#rrggbb’, exactly the PNG’s pixel, or [r, g, b]; backdropGradient null clears it

object