In maya bible: Complete maya programming 1 and 2 there is a sample project doing just that. As joe point out you can start looking to MImage class ( readFromTextureNode <http://help.autodesk.com/cloudhelp/2017/ENU/Maya-SDK/cpp_ref/class_m_image.html#a3e3e6e8e454d2335a2206ea7fc6075d9> / readFromFile <http://help.autodesk.com/cloudhelp/2017/ENU/Maya-SDK/cpp_ref/class_m_image.html#a6c0b6d3f857fa6adc999243f3ff6283a> )
the other 2 class you are after are - MRenderUtil::sampleShadingNetwork () - MDynamicsUtil::evalDynamics2dTexture() otherwise you can also have a mix approach have and have maya arrayMapper sample your image for you and let you node displace you float array attribute. ( look at MPxParticleAttributeMapperNode if you are interested on its mechanics ). -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0ba9f9b5-30cb-41b0-9963-192dfb473a0a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
