Difference between revisions of "UM:Preset Definition"
m (Upload page Preset_Definition) |
m (Text replacement - "Platform:" to "UM:") |
||
(One intermediate revision by the same user not shown) | |||
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 45: | Line 45: | ||
<p class="p_DVBodyText"><span class="f_DVBodyText">Each preset has a </span><span class="f_DVBodyText" style="font-weight: bold;">unique identifier</span><span class="f_DVBodyText">, shown above as </span><span class="f_DVFConfigFile">PresetID1</span><span class="f_DVBodyText">, </span><span class="f_DVFConfigFile">PresetID2</span><span class="f_DVBodyText"> etc. </span></p> | <p class="p_DVBodyText"><span class="f_DVBodyText">Each preset has a </span><span class="f_DVBodyText" style="font-weight: bold;">unique identifier</span><span class="f_DVBodyText">, shown above as </span><span class="f_DVFConfigFile">PresetID1</span><span class="f_DVBodyText">, </span><span class="f_DVFConfigFile">PresetID2</span><span class="f_DVBodyText"> etc. </span></p> | ||
<p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | <p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | ||
− | <p class="p_DVBodyText"><span class="f_DVBodyText">These </span><span class="f_DVBodyText" style="font-style: italic;">unique</span><span class="f_DVBodyText"> names are used to reference the preset when placing it as a button in the tool interface (see the [[ | + | <p class="p_DVBodyText"><span class="f_DVBodyText">These </span><span class="f_DVBodyText" style="font-style: italic;">unique</span><span class="f_DVBodyText"> names are used to reference the preset when placing it as a button in the tool interface (see the [[UM:Preset_Layout|Preset Layout]] section).</span></p> |
<p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | <p class="p_DVBodyText"><span class="f_DVBodyText"> </span></p> | ||
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table border="1" cellpadding="0" cellspacing="10" style="border: solid 1px #ff9900; border-spacing:10px;"> | <div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table border="1" cellpadding="0" cellspacing="10" style="border: solid 1px #ff9900; border-spacing:10px;"> | ||
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> |
Latest revision as of 12:10, 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".