GetPostFXValue
Jump to navigation
Jump to search
Syntax
float getPostFXValue ( string fxType )
Required arguments
- fxType: An string of the PostFX. Possible values are:
- Gamma
- Brightness
- Contrast
- Saturation
Returns
Returns the current value of the specified PostFX parameter.
Example
This example gets the current gamma PostFX value and display it in the chat.
addCommandHandler("getGammaValue",
function()
local gammaValue = getPostFXValue("Gamma")
outputChatBox("Your gamma value is: "..tostring(gammaValue))
end, false, false
)