Skip to reading
PCA Script Programming

set_scene_tint()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Room Tint | Action ID: SetSceneTint

Apply a color tint to a scene with a chosen strength.

Source table from set_scene_tint(), page 150
Option key / fieldMeaning and accepted inputDefault
Scene sceneIdChoose a scene ID.Blank
Tint Color tintColorColor picker or color string."#ffffff"
Tint Strength (0 = Off, 1 = Full) strengthNumber; decimals allowed. Range: 0.0 to 1.0.1.0

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
set_scene_tint({"sceneId": "lab", "tintColor": "#ffffff", "strength": 1.0})

In use. Use a pale blue tint for a cold room, then restore white or zero strength as appropriate. The tint affects presentation; it does not recolor imported source textures on disk.

Page 150 of 357Permalink
Go to page