Concrete implementation of render current frame and batch render. - #4704
Concrete implementation of render current frame and batch render.#4704ppt-adsk wants to merge 1 commit into
Conversation
| // without a renderer name (command would read it). PPT, 10-Aug-2026. | ||
| MGlobal::displayInfo(MString("MayaRenderCurrentFrameHandler::render() called.")); | ||
| std::ostringstream cmdStr; | ||
| cmdStr << "hydraRender -r " << rendererName.asChar() << " -cf"; |
There was a problem hiding this comment.
Does hydraRender return anything itself? render returns the path of the image generated
There was a problem hiding this comment.
Currently hydraRender returns nothing.
For render current frame, conceptually this is possible, though tricky, as we would have to inspect the Hydra render settings, and report the written image for each render product (there could be more than one).
For a sequence render, would we return a vector of vectors of rendered images, the vector of rendered images for each sequence on a single render product, then the vector of that for all render products?
Before implementing anything I would like to figure out if there is a real need for this. From a logical standpoint if the render reports success, then all images for all render products were written to their location.
There was a problem hiding this comment.
Ok i was asking from the POV of that conversation that happened when someone was saying it was "really important" that the output image be opened (with the default OS image viewer for example) after rendering. Guess we figure this out later
There was a problem hiding this comment.
Yeah, I think it's a bit tricky given that you can output more than one render product.
| namespace MayaUsdRenderSetup { | ||
|
|
||
| //! Placeholder. | ||
| bool MayaBatchRenderResult::isDone() const { return true; } |
There was a problem hiding this comment.
(minor) Seems odd to me that both async and isDone be true
(even more minor) isAsync inlined, these not.
There was a problem hiding this comment.
Async means that progress will occur asynchronously.
isDone cannot be a constant. It is here only because it can't be implemented.
No description provided.