×

Mari : Liste des paramètres des Layers d’ajustements selon leur type

[section label= »Objectif » anchor= »objectif »]

Objectif

Trouver la liste des paramètres que l’on peut changer sur un layer d’ajustement (Adjustment Layer) via les fonctions ci-dessous.

setPrimaryAdjustmentParameter(self, parameter_name, new_value)

setSecondaryAdjustmentParameter(self, parameter_name, new_value)

[section label= »En pratique » anchor= »pratique »]

En pratique

Pour cela j’ai créé la boucle suivante qui va créer un layer de chaque type et en interroger les paramètres disponibles via les commandes primaryAdjustmentParameters() et secondaryAdjustmentParameters().

1
2
3
4
5
6
7
8
9
10
11
12
13
14
geo = mari.geo.current()
chan = geo.currentChannel()
typeList = chan.adjustmentLayerTypeList()
for type in typeList:
layer = chan.createAdjustmentLayer(type, type)
print "Paramètres pour "+str(type)
try:
print "\n".join(layer.primaryAdjustmentParameters())
except:
print "Pas de paramètres primaires."
try:
print "\n".join(layer.secondaryAdjustmentParameters())
except:
print "Pas de paramètres secondaires."

On obtient les paramètres suivants:
[table style=’table-hover’]

Type de layer Paramètres primaires Paramètres secondaires
Filter/Brightness
  • Brightness
  • float
 Aucun
Filter/Brightness Lookup
  • Map
  • ?
 Aucun
Filter/Clamp
  • R
  • G
  • B
  • A
  • Max
  • Min
  • bool
  • bool
  • bool
  • bool
  • float
  • float
Aucun
Filter/Color Balance
  • PreserveLuminosity
  • HighlightsBlue
  • HighlightsGreen
  • HighlightsRed
  • MidtonesBlue
  • MidtonesGreen
  • MidtonesRed
  • ShadowsBlue
  • ShadowsGreen
  • ShadowsRed
  • bool
  • float
  • float
  • float
  • float
  • float
  • float
  • float
  • float
  • float
Aucun
Filter/Lookup
  • R
  • G
  • B
  • ?
  • ?
  • ?
 Aucun
Filter/Color Switch
  • Red
  • Green
  • Blue
  • Alpha
  • bool
  • bool
  • bool
  • bool
Aucun
Filter/Contrast
  • Contrast
  • ContrastPivot
  • float
  • float
 Aucun
Filter/Copy Channel
  • Copy
  • ?
 Aucun
Filter/Gamma
  • Gamma
  • Invert
  • float
  • bool
Aucun
Filter/Grade
  • Blackpoint
  • Gain
  • Gamma
  • Lift
  • Multiply
  • Offset
  • Whitepoint
  • float
  • float
  • float
  • float
  • float
  • float
  • float
Aucun
Filter/HSL
  • Hue
  • Lightness
  • Saturation
  • float
  • float
  • float
 Aucun
Filter/HSV
  • Hue
  • Saturation
  • Value
  • float
  • float
  • float
 Aucun
Filter/Height As Normal
  • BumpWeight
  • float
 Aucun
Filter/Hue Shift
  • Hue
  • float
 Aucun
Filter/Invert
  • Red
  • Green
  • Blue
  • Alpha
  • bool
  • bool
  • bool
  • bool
 Aucun
Filter/Levels
  • Red
  • Green
  • Blue
  • Black
  • BlackOut
  • Mid
  • White
  • WhiteOut
  • bool
  • bool
  • bool
  • float
  • float
  • float
  • float
  • float
Aucun
Filter/Luminosity Aucun  Aucun
Filter/Premultiply Alpha
  • Unpremultiply
  • bool
 Aucun
Filter/Saturation
  • Saturation
  • float
 Aucun
Filter/Scale
  • R
  • G
  • B
  • A
  • float
  • float
  • float
  • float
 Aucun
Filter/Set Value
  • Copy
  • Value
  • ?
  • float
 Aucun
Filter/Shuffle
  • CompR
  • CompG
  • CompB
  • CompA
  • ?
  • ?
  • ?
  • ?
 Aucun
Filter/Tangent To Screen
  • SuppressB
  • bool
 Aucun
Filter/Tangent To World
  • SuppressB
  • bool
 Aucun

[/table]

Partager sur:

Photographe professionnel, originaire d'Alsace (France), ancien Directeur Technique sur les films d'animation "Minions", "Moi, Moche et Méchant" et "Le Lorax".

Laisser un commentaire