Used for Color Correction Window operations.
xshade |
↑ |
scene |
↑ |
correction |
correct | Applies the currently set color correction to the color passed in the argument and returns the results |
load | Loads color correction settings from a file |
save | Saves color correction settings to a file |
bias | The bias |
color_shift | The color shift (color) |
contrast | The contrast |
gain | The gain |
gamma | The gamma |
highlight_hue | The highlight hue |
highlight_saturation | The highlight saturation |
mid_hue | The middle tone hue |
mid_saturation | The middle tone saturation |
shadow_hue | The shadow hue |
shadow_saturation | The shadow saturation |
correct
Applies the currently set color correction to the color passed in the argument and return the results.
Return value :
rgb
Arguments :
rgb
#Return color correction results for [1.0, 0.0, 0.0]
print xshade.scene().correction.correct([1.0, 0.0, 0.0])
load
Loads color correction settings from a file.
Arguments :
file_path
See also :
save
#Load color correction settings from sample.shdcor
dialog = xshade.create_dialog_with_uuid()
file_path = dialog.ask_path(True, '*.shdcor|shdcor')
xshade.scene().correction.load(file_path)
save
Saves color correction settings to a file.
Arguments :
file_path
See also :
load
#Save color correction settings to sample.shdcor
dialog = xshade.create_dialog_with_uuid()
file_path = dialog.ask_path(False, '*.shdcor|shdcor')
xshade.scene().correction.save(file_path)
bias
The bias.
Type :
float
print xshade.scene().correction.bias
color_shift
The color shift (color).
Type :
float
print xshade.scene().correction.color_shift
contrast
The contrast.
Type :
float
print xshade.scene().correction.contrast
gain
The gain.
Type :
float
print xshade.scene().correction.gain
gamma
The gamma.
Type :
float
print xshade.scene().correction.gamma
highlight_hue
The highlight hue.
Type :
radian
print xshade.scene().correction.highlight_hue
highlight_saturation
The highlight saturation.
Type :
float
print xshade.scene().correction.highlight_saturation
mid_hue
The middle tone hue.
Type :
radian
print xshade.scene().correction.mid_hue
mid_saturation
The middle tone saturation.
Type :
float
print xshade.scene().correction.mid_saturation
shadow_hue
The shadow hue.
Type :
radian
print xshade.scene().correction.shadow_hue
shadow_saturation
The shadow saturation.
Type :
float
print xshade.scene().correction.shadow_saturation