Portrait
constPortrait:object
Defined in: client/api.d.ts:4736
Off-screen avatar portraits: renders a dressed dummy to a PNG (+ alpha matte).
Type Declaration
Section titled “Type Declaration”busy()
Section titled “busy()”busy():
boolean
True while a capture is in flight.
Returns
Section titled “Returns”boolean
capture()
Section titled “capture()”capture(
request?):boolean
Queues a capture; false if one is already running. Multi-frame — poll busy()/result().
Parameters
Section titled “Parameters”request?
Section titled “request?”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 }
Returns
Section titled “Returns”boolean
lastImage()
Section titled “lastImage()”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.
Parameters
Section titled “Parameters”maxBytes?
Section titled “maxBytes?”number
Size cap; default 4 MiB.
Returns
Section titled “Returns”string
result()
Section titled “result()”result():
string
The last completed capture’s status line, consumed on read.
Returns
Section titled “Returns”string
tune()
Section titled “tune()”tune(
settings?):object
Art direction, set once rather than per call. Returns the settings in effect.
Parameters
Section titled “Parameters”settings?
Section titled “settings?”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
Returns
Section titled “Returns”object