ppEffectAdjust: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(39 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|eff = local |MP Effects=
|game3= tkoh
|version3= 1.00


|gr1= Camera Control |GROUP1=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| Set [[Post process effects|post process effect]] parameters.
|eff= local


{{Informative | The two syntaxes differ in what format of the params they accept. The syntax with PP name expects colors to be packed into arrays within main array, while the syntax with PP handle can handle both flat and packed array. Therefore it is recommended to use the universal packed format, such as shown in the examples.}} |DESCRIPTION=
|gr1= Camera Control
____________________________________________________________________________________________


| effect '''ppEffectAdjust''' settings |SYNTAX=
|descr= Set [[Post Process Effects|post process effect]] parameters.


|p1= effect: [[String]] effect name |PARAMETER1=
{{Feature|informative|The two syntaxes differ in what format of the params they accept. The syntax with PP name expects colors to be packed into arrays within main array, while the syntax with PP handle can handle both flat and packed array. Therefore it is recommended to use the universal packed format, such as shown in the examples.}}


|p2= settings: [[Array]] - array of effect params |PARAMETER2=
|s1= effect [[ppEffectAdjust]] settings


| [[Nothing]] |RETURNVALUE=
|p1= effect: [[String]] or [[Number]]
* [[String]] - effect name
* [[Number]] - effect handle


| s2= handle '''ppEffectAdjust''' settings |SYNTAX2=
|p2= settings: [[Array]] - array of effect params


|p21= handle: [[Number]] - effect handle |PARAMETER21=
|r1= [[Nothing]]


|p22= settings: [[Array]] - array of effect params |PARAMETER22=
|r2= [[Nothing]]


|r2= [[Nothing]] |RETURNVALUE2=
|x1= <sqf>"colorCorrections" ppEffectAdjust [1, 1, -0.01, [0, 0, 0, 0], [1.5, 1, 1.2, 0.6], [0.199, 0.587, 0.114, 0]];</sqf>


|x1= <code>"colorCorrections" [[ppEffectAdjust]] [1, 1, -0.01, [0, 0, 0, 0], [1.5, 1, 1.2, 0.6], [0.199, 0.587, 0.114, 0]];</code>|EXAMPLE1=
|x2= Black&White:
<sqf>_colorCorrectionsEffHandle ppEffectAdjust [1, 0.4, 0, [0, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 0]];</sqf>


|x2= Black&White: <code>_colorCorrectionsEffHandle [[ppEffectAdjust]] [1, 0.4, 0, [0, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 0]];</code>|EXAMPLE2=
|seealso= [[Post Process Effects]] [[ppEffectForceInNVG]] [[ppEffectEnable]] [[ppEffectEnabled]] [[ppEffectDestroy]] [[ppEffectCreate]] [[ppEffectCommitted]] [[ppEffectCommit]] [[setPiPEffect]]
____________________________________________________________________________________________
 
| [[Post process effects]], [[ppEffectForceInNVG]], [[ppEffectEnable]], [[ppEffectEnabled]], [[ppEffectDestroy]], [[ppEffectCreate]], [[ppEffectCommitted]], [[ppEffectCommit]], [[setPiPEffect]]|SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:11, 15 March 2024

Hover & click on the images for description

Description

Description:
Set post process effect parameters.
The two syntaxes differ in what format of the params they accept. The syntax with PP name expects colors to be packed into arrays within main array, while the syntax with PP handle can handle both flat and packed array. Therefore it is recommended to use the universal packed format, such as shown in the examples.
Groups:
Camera Control

Syntax

Syntax:
effect ppEffectAdjust settings
Parameters:
effect: String or Number
settings: Array - array of effect params
Return Value:
Nothing

Examples

Example 1:
"colorCorrections" ppEffectAdjust [1, 1, -0.01, [0, 0, 0, 0], [1.5, 1, 1.2, 0.6], [0.199, 0.587, 0.114, 0]];
Example 2:
Black&White:
_colorCorrectionsEffHandle ppEffectAdjust [1, 0.4, 0, [0, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 0]];

Additional Information

See also:
Post Process Effects ppEffectForceInNVG ppEffectEnable ppEffectEnabled ppEffectDestroy ppEffectCreate ppEffectCommitted ppEffectCommit setPiPEffect

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note