c++viewportmaya-api

Maya C++ Plugin MPxImagePlane


I'm creating an MPxImagePlane plugin in maya's c++ api. It works great in the legacy viewport, but I'm not finding any reference to extend it to viewport 2.0.

Example: http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_custom_image_plane_2custom_image_plane_8cpp_example_html

How can I extend my current MPxImagePlane to draw in viewport 2.0? I assume it's something along the lines of using MPxDrawOverride, but i'd rather not completely re implement the image plane node.


Solution

  • In Maya 2018 and greater an override class has been added for viewport 2.0:

    https://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__cpp_ref_class_m_h_w_render_1_1_m_px_image_plane_override_html