How to develop a Maya Viewport Extension in C++(MFC) -
Do I need to develop Maya Viewport extensions in C ++ with MFC? It also needs to control the visual style (such as top view, left view etc.). Can I collect Maya SDK and make it? Thank you. Thank you. Thank you. Thank you. Thank you. Thank you.
I'm not completely sure what you call "viewout extensions".
I think you are trying to write Maya plug-ins, which shows your own kind of viewport, which is commonly called "model view".
MCF has nothing to do with it.
You use Maya Mel / Python commands to create Maya windows, panels and other UI-elements.
(If I made a hack to work with the windows you made, then I do not know) .
You can develop custom view ups in Maya by creating two sections: a viewport or model view and " model editor command ". Model View
You have a viewport class, it is called "MyViewport". " Its successor "MPC 3 Demo DelView" Normally you will be connected to a camera viewport. Come on, you control from where you see the scene. You can have many cameras connected to your viewport (multiple-pass display, for example stereo 3D), or none (but then you have to set all the rendering parameters by yourself, which can be tedious) .
You get permission to set your viewport details with the callback function that you receive from that class.
See the Maya documentation on MPx3dModelView how to use it.
Model Editor Command
The other category you need is a viewport command.
This is what comes when someone tries to make your viewport.
Its successor "MPX MODEL editor commmund" This most important feature is that it can make an example of your model editor class.
View the Maya documentation on MPxModelEditorCommand How to use it:
Registering the Viewport Command with Maya Plug-In
Able to create your viewport To be, you have to register your model editor with a plug-in.
In your initial plugin function which you export with the plugin)
Mistitus initializliglagin (object ozage) {mfnplugin plugin (obg, PLUGNGMAPNA, "1.0", "AC"); Plugin.registerModelEditorCommand (MyModelViewCmd :: commandName, MyModelViewCmd :: Creator, MyModelViewCmd :: createModelView); } A script that creates your viewer
Finally, you use MEL or Python scripting in the mile to create your user interface.
In the easiest set-up, you just create a window and then call your model editor command so that you can create custom viewport in this window.
Window Myvando; Pensaleut Myvandopan; MyModelView MyModelView1;
Comments
Post a Comment