So I am looking to be able to render an object in a maya scene so that no matter what (position, occlusion, orientation), it is always ontop of everything else. Ideally this would be in the viewport but if not thats fine too.
Anyone have some ideas?
The API for Viewport 2.0 lets you set custom render overrides. This is probably the most elegant way to do this.The developer kit has an example 'viewRenderOverride' that should be a good place to start looking. I've never tried this before but it's always been on my list of things to get around to.