SlideshowOptions
Settings that control how the scene slideshow plays back.
Access it from model.options.slideshowOptions. Use it to
read or update whether the slideshow loops and how long each
scene is displayed before advancing.
Example
Section titled “Example”let model = await SketchUpApi.getActiveModel();let opts = model.options.slideshowOptions;
console.log(opts.loopSlideshow);// => trueconsole.log(opts.slideTime);// => 1 (seconds per scene)
// Show each scene for 3 secondsawait opts.update({ SlideTime: 3 });let updated = await opts.refresh();console.log(updated.slideTime);// => 3SDK 1.18.0
Properties
Section titled “Properties”options
Section titled “options”
readonlyoptions:OptionsProvider
Accessors
Section titled “Accessors”loopSlideshow
Section titled “loopSlideshow”Get Signature
Section titled “Get Signature”get loopSlideshow():
boolean
Whether the slideshow loops back to the first scene after the last one.
Returns
Section titled “Returns”boolean
Get Signature
Section titled “Get Signature”get name():
string
The internal name of this options provider, like
'SlideshowOptions'.
Returns
Section titled “Returns”string
slideTime
Section titled “slideTime”Get Signature
Section titled “Get Signature”get slideTime():
number
How long each scene is displayed before advancing, in
seconds, like 1.
Returns
Section titled “Returns”number
Methods
Section titled “Methods”refresh()
Section titled “refresh()”refresh():
Promise<SlideshowOptions>
Re-fetches these options from SketchUp to pick up any changes the user has made since this snapshot was taken.
Returns
Section titled “Returns”Promise<SlideshowOptions>
SDK 1.18.0
toString()
Section titled “toString()”toString():
string
Returns
Section titled “Returns”string
update()
Section titled “update()”update(
updates):Promise<string[]>
Applies updates to the slideshow settings. Returns an array of any keys that were rejected as invalid.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
the properties to change |
Returns
Section titled “Returns”Promise<string[]>
rejected keys, or an empty array on success
SDK 1.18.0 protocol 1.15.0