Message 1 of 3
Custom render within plugin?
Not applicable
05-01-2012
11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi..
This may be a FAQ, but I'm not knowledgeable enough at this point to know :>(.
I'm using Maya 2013 to host a plugin which registers a node that samples a mesh to produce points. I would like to display the points and intermediate geometry while the plugin is processing the mesh because it is a fairly involved process and it would help with the debugging. For this reason it would be nice if there was a way to force a refresh of the viewport during the processing. From my limited understanding I think a custom viewport 2.0 renderer might work. I notice that there is also a way to register a custom shape in the plugin.. maybe this is a better approach? I don't know if a custom shape can be flushed to the viewport on demand.
Assuming that a custom renderer is suitable, I notice that Maya 2013 has a viewRenderOverride example using the new Viewport 2.0 API. My plugin is using MFnPlugin and I want to update a viewport while the node's compute() method is running. The compute method is currently invoked as a result of running Mel script within the script window.
If anyone knows of a good way to handle this I would appreciate your feedback.
thanks!
This may be a FAQ, but I'm not knowledgeable enough at this point to know :>(.
I'm using Maya 2013 to host a plugin which registers a node that samples a mesh to produce points. I would like to display the points and intermediate geometry while the plugin is processing the mesh because it is a fairly involved process and it would help with the debugging. For this reason it would be nice if there was a way to force a refresh of the viewport during the processing. From my limited understanding I think a custom viewport 2.0 renderer might work. I notice that there is also a way to register a custom shape in the plugin.. maybe this is a better approach? I don't know if a custom shape can be flushed to the viewport on demand.
Assuming that a custom renderer is suitable, I notice that Maya 2013 has a viewRenderOverride example using the new Viewport 2.0 API. My plugin is using MFnPlugin and I want to update a viewport while the node's compute() method is running. The compute method is currently invoked as a result of running Mel script within the script window.
If anyone knows of a good way to handle this I would appreciate your feedback.
thanks!