interface SceneData {
    _id: null | string;
    _stats: DocumentStats;
    active?: boolean;
    background?: null | TextureData;
    backgroundColor?: null | string;
    base: EnvironmentData;
    cycle: boolean;
    darkness?: number;
    drawings?: DrawingData[];
    environment: SceneEnvironmentData;
    flags: DocumentFlags;
    fog: {
        colors: { explored: null | string; unexplored: null | string };
        exploration: boolean;
        overlay: null | string;
        reset: undefined | null | number;
    };
    folder: null
    | string;
    foreground?: null | string;
    foregroundElevation?: number;
    grid: GridData;
    height?: number;
    initial: { scale: null | number; x: null | number; y: null | number };
    journal: null | string;
    journalEntryPage: null | string;
    lights?: AmbientLightData[];
    name: string;
    navigation?: boolean;
    navName?: string;
    navOrder?: number;
    notes?: NoteData[];
    ownership?: object;
    padding?: number;
    playlist: null | string;
    playlistSound: null | string;
    regions?: RegionData[];
    sort?: number;
    sounds?: AmbientSoundData[];
    templates?: MeasuredTemplateData[];
    thumb: null | string;
    tiles?: TileData[];
    tokens?: TokenData[];
    tokenVision?: boolean;
    walls?: WallData[];
    weather?: string;
    width?: number;
}

Properties

_id: null | string

The _id which uniquely identifies this Scene document

An object of creation and access information

active?: boolean

Is this scene currently active? Only one scene may be active at a given time

background?: null | TextureData

An image or video file that provides the background texture for the scene.

backgroundColor?: null | string

The color of the canvas displayed behind the scene background

The base ambience values pertaining to the Scene.

cycle: boolean

If cycling is activated for the Scene, between base and darkness environment data.

darkness?: number

The ambient darkness level in this Scene, where 0 represents midday (maximum illumination) and 1 represents midnight (maximum darkness)

drawings?: DrawingData[]

A collection of embedded Drawing objects.

The environment data applied to the Scene.

An object of optional key/value flags

fog: {
    colors: { explored: null | string; unexplored: null | string };
    exploration: boolean;
    overlay: null | string;
    reset: undefined | null | number;
}

Fog-exploration settings and other data

Type declaration

  • colors: { explored: null | string; unexplored: null | string }

    Fog-exploration coloration data

    • explored: null | string

      A color tint applied to explored regions of fog of war

    • unexplored: null | string

      A color tint applied to unexplored regions of fog of war

  • exploration: boolean

    Should fog exploration progress be tracked for this Scene?

  • overlay: null | string

    A special overlay image or video texture which is used for fog of war

  • reset: undefined | null | number

    The timestamp at which fog of war was last reset for this Scene.

folder: null | string

The _id of a Folder which contains this Actor

foreground?: null | string

An image or video file path providing foreground media for the scene

foregroundElevation?: number

The elevation of the foreground image

grid: GridData

Grid configuration for the scene

height?: number

The height of the scene canvas, normally the height of the background media

initial: { scale: null | number; x: null | number; y: null | number }

The initial view coordinates for the scene

journal: null | string

A JournalEntry document which provides narrative details about this Scene

journalEntryPage: null | string

A JournalEntry document which provides narrative details about this Scene

lights?: AmbientLightData[]

A collection of embedded AmbientLight objects.

name: string

The name of this scene

navigation?: boolean

Is this scene displayed in the top navigation bar?

navName?: string

A string which overrides Scene name for display in the navigation bar

navOrder?: number

The sorting order of this Scene in the navigation bar relative to siblings

notes?: NoteData[]

A collection of embedded Note objects.

ownership?: object

An object which configures ownership of this Scene

padding?: number

The proportion of canvas padding applied around the outside of the scene dimensions to provide additional buffer space

playlist: null | string

A linked Playlist document which should begin automatically playing when this Scene becomes active.

playlistSound: null | string

A linked PlaylistSound document from the selected playlist that will begin automatically playing when this Scene becomes active

regions?: RegionData[]

A collection of embedded Region objects.

sort?: number

The numeric sort value which orders this Actor relative to its siblings

sounds?: AmbientSoundData[]

A collection of embedded AmbientSound objects.

templates?: MeasuredTemplateData[]

A collection of embedded MeasuredTemplate objects.

thumb: null | string

A thumbnail image which depicts the scene at lower resolution

tiles?: TileData[]

A collection of embedded Tile objects.

tokens?: TokenData[]

A collection of embedded Token objects.

tokenVision?: boolean

Do Tokens require vision in order to see the Scene environment?

walls?: WallData[]

A collection of embedded Wall objects

weather?: string

A named weather effect which should be rendered in this Scene.

width?: number

The width of the scene canvas, normally the width of the background media