-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ArnoldShader : Support
camera_projection.camera
parameter
This is just a case of setting the `gaffer.plugType` to "StringPlug" and letting the recently added `NodeParameter` mechanism do the rest in `ArnoldRenderer`. Also added a nice camera browser using ScenePathPlugValueWidget. I was unsure what to do for this in ArnoldShaderUI, as the "camera" value for "widget" isn't part of the OSL standard. The other option would have been to support three new Gaffer-specific metadata entries for `gaffer.plugValueWidget.type`, `scenePathPlugValueWidget.setNames` and `scenePathPlugValueWidget:setsLabel`. But that seemed quite faffy when we don't have any other use cases for them at present, and "camera" seems like something that could reasonably be supported by other DCCs.
- Loading branch information
1 parent
8a954c2
commit 62c70e5
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters