Skip to content

hydraRender -cf and -f implemented and tested. - #495

Open
ppt-adsk wants to merge 1 commit into
devfrom
tremblp/HYDRA-2480/hydraRender_single_frame
Open

hydraRender -cf and -f implemented and tested.#495
ppt-adsk wants to merge 1 commit into
devfrom
tremblp/HYDRA-2480/hydraRender_single_frame

Conversation

@ppt-adsk

Copy link
Copy Markdown
Collaborator

The hydraRender command now supports current frame (-cf) and frame (-f) renders. This is useful when implementing render current frame and render sequence blocking functionality from within Maya, without the use the of the command line Render executable.

@ppt-adsk
ppt-adsk requested a review from benyoon-adsk August 20, 2026 15:14
@ppt-adsk ppt-adsk self-assigned this Aug 20, 2026
Comment thread cmake/test.cmake
endfunction()

# Discover the mayabatch executable (Windows only; macOS/Linux use maya -batch).
if(IS_WINDOWS)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows the proper way to invoke Maya batch is through the mayabatch executable. On macOS and Linux it is maya -batch.

Comment thread cmake/test.cmake
endif()

#
# mayaHydra_add_mayabatch_render_test( <scene_file_labeled>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical to mayaHydra_add_cmd_line_render_test() but invokes Maya batch directly to generate an image (through a supplied MEL script) rather than invoking the Render executable. Still uses idiff to perform the image comparison.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The batch renderer can now optionally carry the frames to be rendered. Used to implement render current frame and render frame.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implement the -cf and -f flags, and set the render times onto the batch renderer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Batch renderer now stores the render times.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple Maya batch MEL script to test render current frame (hydraRender -cf).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple Maya batch MEL script to render an arbitrary frame (hydraRender -f).

)
endforeach()

set(ARNOLD_MAYABATCH_RENDER_SCENES

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New list of tests to run with Maya batch as the source of rendered images, rather than the Render executable.

@ppt-adsk ppt-adsk assigned ppt-adsk and unassigned ppt-adsk Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant