0

How to access image module in python

Hi,

It seems that there is no image module in python. I need to load an image and create a texture with it but since there is no image module in python I've tried different combinations to use the MuSymbol instead without success. Any of my tests gave me an error about some non Mu Symbol.

Please can you give me a way to load an image in the python script and be able to use it as a texture ?

 

Thanks,

 

 

댓글 2개

  • 0
    Avatar
    Jon Morley

    Hi Christophe,

    Can you please tell me what version of RV you are using and on what platform?

    I don't think the "image" module is part of the default Python modules. If am wrong though please show me where that is listed.

    You can certainly install the image module somewhere along your python path to use from within RV if that what you are most comfortable with. If you instead wish to use the Mu methods with similar abilities then please send me the code you have written as well as the errors you are getting so I can take a look.

    Thanks,
    Jon

  • 0
    Avatar
    Jon Morley

    Hi Christophe,

    If you are referring to the Mu image module we have then there is no Python equivalent. You should use PyOpenGL which will be included in the near term release of RV version 6.2.5.

    Thanks,
    Jon

댓글을 남기려면 로그인하세요.