Difference between revisions of "UM:Preset Definition"
m (Upload page Preset_Definition) |
m (Text replacement - "|Platform:" to "|UM:") |
||
Line 1: | Line 1: | ||
<div class="manualcontent"> | <div class="manualcontent"> | ||
− | {{Template:M-Navlinks-top| | + | {{Template:M-Navlinks-top|UM:Manual|UM:Presets|UM:Preset_Layout}} |
{{Template:M-Title|Preset Definition}} | {{Template:M-Title|Preset Definition}} | ||
Line 160: | Line 160: | ||
<p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | <p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | ||
− | {{Template:M-Navlinks-bottom| | + | {{Template:M-Navlinks-bottom|UM:Manual|UM:Presets|UM:Preset_Layout}} |
</div> | </div> |
Revision as of 11:05, 15 October 2014
Location : |
C:\Nucoda\2014_1\root\ParamPresets.prefs |
File Format
All presets are defined in the ParamPresets.prefs text file, wrapped inside the ParamPresets tag. The Gamma Matrix effect is defined in a section wrapped with the tag GammaMatrix.
Within the GammaMatrix section, define one or more preset sections as shown below.
ParamPresets { ... GammaMatrix { PresetID1 { ... } PresetID2 { ... } ... } } |
Each preset has a unique identifier, shown above as PresetID1, PresetID2 etc.
These unique names are used to reference the preset when placing it as a button in the tool interface (see the Preset Layout section).
By convention, these preset identifiers are named in a style that identifies their usage i.e.
|
Pre/Post Gamma Presets
Set pre-gamma and post-gamma using the preGamma and postGamma declarations within a section :
preGammaID1 { preGamma <FLOAT> }
postGammaID2 { postGamma <FLOAT> } |
Where <FLOAT> defines a floating point value for the gamma applied e.g.
preGamma188 { preGamma 1.88 } |
The above pre-gamma section would be referenced inside the Layout file through the identifier "preGamma188".
Matrix Presets
A matrix preset specifies each red, green, blue and alpha column value as follows :
matrixID { red { red <FLOAT> green <FLOAT> blue <FLOAT> alpha <FLOAT> } green { red <FLOAT> green <FLOAT> blue <FLOAT> alpha <FLOAT> } blue { red <FLOAT> green <FLOAT> blue <FLOAT> alpha <FLOAT> } alpha { red <FLOAT> green <FLOAT> blue <FLOAT> alpha <FLOAT> } transpose <BOOLEAN> } |
Where <FLOAT> defines a floating point value e.g.
matrixTestSample { red { red 0.782000 green 0.366000 blue 0.455000 alpha 0.000000 } ... ... etc. ... transpose true } |
transpose is a <BOOLEAN> and can be set to true or false. If not present, transpose is assumed true.
The above matrix would be referenced inside the Layout file through the identifier "matrixTestSample".