Scene <Items, Filters>
Hierarchy
- Source<Filters>
- Scene
Index
Constructors
constructor
Type parameters
- Items: Record<string, Source<{}>> = {}
- Filters: SourceFilters = {}
Parameters
args: SceneArgs<Items, Filters>
Returns Scene<Items, Filters>
Properties
filters
itemInstances
items
kind
linked
name
obs
Accessors
exists
Returns boolean
initialized
Whether
initialize
has been called on this source yetReturns boolean
Methods
addFilter
create
createItem
Type parameters
- T: Source<{}, T>
Parameters
ref: string
itemSchema: SceneItemSchema<T>
Returns Promise<ReturnType<T[createSceneItemObject]>>
createSceneItemObject
filter
Gets a filter from the input by its ref
Type parameters
- R: string | number | symbol
Parameters
ref: R
Returns Filters[R]
getPrivateSettings
8 Get a source’s private settings. This is an UNDOCUMENTED request of obs-websocket, and SHOULD NOT be used unless you know what you’re doing.
Returns Promise<Settings>
item
Gets a scene item from the scene by its ref.
Type parameters
- R: string | number | symbol
Parameters
ref: R
Returns ReturnType<Items[R][createSceneItemObject]>
link
Links to an existing scene in OBS, verifying that all sources as defined by the scene’s items schema exist. Will mark itself as existing if a matching scene is found, but will still throw if the items schema is not matched.
Parameters
obs: OBS
optionaloptions: Partial<LinkOptions>
Returns Promise<void>
makeCurrentScene
Parameters
optionalpreview: boolean
Whether to make the scene the current preview scene
Returns Promise<void>
remove
Returns Promise<void>
setName
Parameters
name: string
Returns Promise<void>
setPrivateSettings
Set a source’s private settings. This is an UNDOCUMENTED request of obs-websocket, and SHOULD NOT be used unless you know what you’re doing.
Parameters
settings: Settings
Returns Promise<void>
Whether this source has at least one scene item in OBS