Package nuke :: Class Lut
[hide private]
[frames] | no frames]

Class Lut

object --+
         |
        nuke.Lut

Lut

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(T, S, ...)
float
fromByte(self, float)
Converts byte values in the range 0-255 to floating point.
float
fromByteSingle(self, float)
Converts byte values in the range 0-255 to floating point.
float list
fromFloat(src, alpha)
Convert a sequence of floating-point values to from_byte(x*255).
True if toByte(x) appears to return x*255, False otherwise.
isLinear(self)
True if toByte(0) returns a value <= 0, False otherwise.
isZero(self)
float
toByte(self, float)
Converts floating point values to byte values in the range 0-255.
float
toByteSingle(self, float)
Converts floating point values to byte values in the range 0-255.
float list
toFloat(src, alpha)
Convert a sequence of floating-point values to to_byte(x)/255.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

fromFloat(src, alpha)

 

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.

Returns: float list

toFloat(src, alpha)

 

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.

Returns: float list