Skip to content

Fix camera name in RenderVar prim#2657

Open
peterhorvath111 wants to merge 1 commit into
Autodesk:masterfrom
peterhorvath111:FB/issue_2654
Open

Fix camera name in RenderVar prim#2657
peterhorvath111 wants to merge 1 commit into
Autodesk:masterfrom
peterhorvath111:FB/issue_2654

Conversation

@peterhorvath111
Copy link
Copy Markdown
Contributor

Issue

AiSceneWrite exports a RenderVar.arnold:camera AOV reference using the sanitized USD path (e.g. /uv_camera__Sphere), but also authors primvars:arnold:name on the camera prim with the raw Arnold name (e.g. uv_camera__Sphere, no leading slash). On readback, the procedural renames the camera Arnold node to match primvars:arnold:name, so the AOV reference no longer resolves — Arnold core reports [aov] output references a non-camera node: /uv_camera__Sphere.

Fix

In libs/translator/writer/write_options.cpp:480, write the AOV's camera attribute using AiNodeGetName(output.camera) instead of GetArnoldNodeName(...), so the string matches the Arnold node name that will exist after readback. Fall back to GetArnoldNodeName only if the node has no name. This makes RenderVar.arnold:camera consistent with what ArnoldRenderOutput.arnold:camera already does and with how the render delegate (render_settings.cpp:796-798) resolves the camera at read time.

Issues fixed in this pull request
Fixes #2654

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.

Render fail if UV camera assigned to render outputs

1 participant