rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Classes | |
class | Linear |
Functions | |
def | is_texture |
def | image_size |
def | load |
def | register_prefs |
Variables | |
int | kByteArray = 0 |
int | kTexture = 1 |
int | kQpixmap = 2 |
def rfm2.utils.tex.image_size | ( | iceimg | ) |
Return a width, height tuple.
def rfm2.utils.tex.is_texture | ( | filepath | ) |
def rfm2.utils.tex.load | ( | image, | |
max_size = None , |
|||
out_format = kByteArray , |
|||
linearize = Linear.kAuto |
|||
) |
Load the image with ice. All images will be resized (is requested), converted to 8 bits and gamma-corrected if originating from a float image. TODO: when the output format is kTexture, the texture manager should be able to return us a texture object if it has already been loaded. At the moment, we always reload/resize etc, sometimes for nothing and it creates viewport lag during some manipulations.
def rfm2.utils.tex.register_prefs | ( | ) |
int rfm2.utils.tex.kByteArray = 0 |
int rfm2.utils.tex.kQpixmap = 2 |
int rfm2.utils.tex.kTexture = 1 |