nuke.Lut¶
-
class
nuke.Lut¶ Bases:
objectMethods
Converts byte values in the range 0-255 to floating point.
self.fromByte(float) -> float.
Convert a sequence of floating-point values to from_byte(x*255).
Converts floating point values to byte values in the range 0-255.
self.toByte(float) -> float.
Convert a sequence of floating-point values to to_byte(x)/255.
-
fromByte(float) → float.¶ Converts byte values in the range 0-255 to floating point.
-
fromByteSingle()¶ self.fromByte(float) -> float.
Converts byte values in the range 0-255 to floating point.
-
fromFloat(src, alpha) → float list.¶ Convert a sequence of floating-point values to from_byte(x*255). Alpha is an optional argument and if present unpremultiply by alpha, convert, and then multiply back.
-
isLinear() → True if toByte(x) appears to return x*255, False otherwise.¶
-
isZero() → True if toByte(0) returns a value <= 0, False otherwise.¶
-
toByte(float) → float.¶ Converts floating point values to byte values in the range 0-255.
-
toByteSingle()¶ self.toByte(float) -> float.
Converts floating point values to byte values in the range 0-255.
-
toFloat(src, alpha) → float list.¶ Convert a sequence of floating-point values to to_byte(x)/255. Alpha is an optional argument and if present unpremultiply by alpha, convert, and then multiply back.
-