User Tools

Site Tools


set_screen_effect_property

This is an old revision of the document!


Set Screen Effect Property


Modifies a property for either the VHS/CRT monitor effect or the retro effect. See below for a list of properties that can be changed for each screen effect and their possible values.

Signature:

set_screen_effect_property(property_name, property_value, duration)
ArgumentDescriptionTypeRequired
property_nameName of the property.StringYes
property_valueValue that will be assigned to the property.VariesYes
durationDuration over which the property will be changed (in seconds).NumberNo
screen_effect_idID of the screen effect to change the property for, either “vhs” or “retro”. Defaults to “vhs” if omitted.StringNo

The following properties are available to change for the VHS/CRT monitor effect:

PropertyDescriptionType
scanlines_opacityDecimal value from 0 to 1.Number
scanlines_widthDecimal value from 0 to 0.5.Number
grille_opacityDecimal value from 0 to 1.Number
resolutionValue should be an array containing two values, width and height.Array
pixelateBoolean value (true or false).Boolean
rollBoolean value (true or false).Boolean
roll_speedDecimal value from -100 to 100.Number
roll_sizeDecimal value from 0 to 100.Number
roll_variationDecimal value from 0.1 to 5.Number
distort_intensityDecimal value from 0 to 0.2.Number
noise_opacityDecimal value from 0 to 1.Number
noise_speedDecimal value from 0 to 100.Number
noise_intensityDecimal value from 0 to 1.Number
aberrationDecimal value from -1 to 1.Number
brightnessDecimal value from 0 to 10.Number
discolorMust be true in order for saturation and contrast to be changed.Boolean
saturationDecimal value from -10 to 10. Requires the “discolor” property to be true, otherwise changing the saturation will have no effect.Number
contrastDecimal value from 0 to 10. Requires the “discolor” property to be true otherwise changing the contrast will have no effect.Number
warp_amountDecimal value from 0 to 5.Number
vignette_intensityDecimal value from 0 to 1.Number
vignette_opacityDecimal value from 0 to 1.Number

The following properties are available to change for the retro effect:

PropertyDescriptionType
scale_resolutionBoolean value (true or false).Boolean
resolution_scaleInteger value from 1 to 32. Requires the “scale_resolution” property to be true, otherwise changing the resolution scale will have no effect.Number
change_color_depthBoolean value (true or false).Boolean
color_depthInteger value from 1 to 8. Requires the “change_color_depth” property to be true, otherwise changing the color depth will have no effect.Number
ditheringBoolean value (true or false).Boolean

Example:

set_screen_effect_property("saturation", 0, 2, "vhs");

Results:

Use the Set Screen Effect Property function to…


Editor Node:

set_screen_effect_property.1739758348.txt.gz · Last modified: 2025/02/16 18:12 by justin