Skip to content

HYDRA-2383 : Add unit test for HdArnold custom nodes - #462

Merged
lilike-adsk merged 3 commits into
devfrom
yoonb1/HYDRA-2383/add-hdarnold-custom-nodes-test
Jul 9, 2026
Merged

HYDRA-2383 : Add unit test for HdArnold custom nodes#462
lilike-adsk merged 3 commits into
devfrom
yoonb1/HYDRA-2383/add-hdarnold-custom-nodes-test

Conversation

@benyoon-adsk

Copy link
Copy Markdown
Collaborator

Added unit test for HdArnold custom nodes implementation from https://github.com/Autodesk/arnold-usd/pull/2653/changes.

aiSkyDomeLight and aiAreaLight are not tested because they have existing maya-hydra adapters (aiSkydomeLightAdapter / aiAreaLightAdapter) that produce domeLight / rectLight prims directly, so they don't go through the mayaCustomDagNode / mtoaSIP paths.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new Maya-to-Hydra unit test suite that validates HdArnold’s custom-node translation (mtoaSIP) behavior when Arnold is the active Hydra renderer, and wires the new tests into the existing C++/Python test harness and build/test configuration.

Changes:

  • Added a Python driver test that activates the Arnold Hydra renderer, creates Arnold plugin nodes, and dispatches into C++ gtests via mayaHydraCppTest.
  • Added a C++ gtest suite that verifies translated prim types and key attribute mappings for aiPhotometricLight, aiStandIn, and aiVolume.
  • Updated test CMake wiring and test environment setup to include the new test sources/scripts and to register MtoA USD plugins via the USD plugin path.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/lib/mayaUsd/render/mayaToHydra/cpp/testArnoldCustomNodes.py Python test driver that switches to Arnold Hydra override, creates test nodes, and invokes the C++ checks.
test/lib/mayaUsd/render/mayaToHydra/cpp/testArnoldCustomNodes.cpp New gtests validating mtoaSIP custom-node translation results in the Hydra scene index.
test/lib/mayaUsd/render/mayaToHydra/cpp/CMakeLists.txt Adds the new C++ test source to the cpp test target.
test/lib/mayaUsd/render/mayaToHydra/CMakeLists.txt Registers the new Python test script in the interactive test script list.
cmake/test.cmake Extends test environment setup to append MtoA USD bundle path to the USD plugin path for test runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/lib/mayaUsd/render/mayaToHydra/cpp/testArnoldCustomNodes.cpp
@benyoon-adsk benyoon-adsk self-assigned this Jul 3, 2026

@lanierd-adsk lanierd-adsk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for doing this, only one comment.

// See the License for the specific language governing permissions and
// limitations under the License.
//
// C++ GTest suite for the HdArnoldMtoaSceneIndexPlugin (mtoaSIP).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would add a comment to say that mtoaSIP is scene index plugin, it's not obvious

lanierd-adsk
lanierd-adsk previously approved these changes Jul 3, 2026

@ppt-adsk ppt-adsk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice work!

@benyoon-adsk benyoon-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 9, 2026
@lilike-adsk
lilike-adsk merged commit abe2e2b into dev Jul 9, 2026
11 of 12 checks passed
@lilike-adsk
lilike-adsk deleted the yoonb1/HYDRA-2383/add-hdarnold-custom-nodes-test branch July 9, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants