-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
113 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "foundry-nuke" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
description = "Collection of script & resources for Foundry's Nuke software." | ||
authors = ["Liam Collod <[email protected]>"] | ||
readme = "README.md" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# exposure-bands | ||
|
||
generate successive bands of gradually increasing exposure. | ||
|
||
This is useful when testing and prototyping image-rendering transform and | ||
you need to evaluate its render against different exposure of a same source. | ||
|
||
![nuke screenshot as example](example.png) | ||
|
||
# design | ||
|
||
Be aware that to be dynamic as possible the node generate the exposure bands | ||
on different frames. This implies also having tcl expression using the `frame` | ||
variable which can sometimes lead to unstabilities. | ||
|
||
# adding dynamic text on each band | ||
|
||
It's possible to add text indicating the exposure value of each band without | ||
manually creating a text node for each band, however it's a bit tricky: | ||
|
||
- Go inside the node | ||
- Between the 2 internal nodes add a `ModifyMetadata` node | ||
- add a single `_bands_exposure` key | ||
- as value of that key put the tcl expression `[value parent._exposure]` | ||
- Add a `Text` node after the `ModifyMetadata` | ||
- in the message put the tcl expression `[metadata _bands_exposure]` | ||
- configure the Text node as you wish | ||
|
||
> Why using a ModifyMetadata node ? | ||
This is the only hack I found so Nuke properly pickup the band exposure for | ||
its correct frame (remember the tool use the frame-range to work). | ||
|
||
> [!TIP] | ||
> If you are using the tool for evaluating image rendering you probably don't | ||
> want the text to be affected by it, so you will have to put an OCIODisplay | ||
> node or whatver you use for your image rendering before the text node but after | ||
> the first internal exposure node. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Group { | ||
name ExposureBandsTest | ||
xpos 0 | ||
ypos 0 | ||
tile_color 0x64899900 | ||
note_font_color 0xffffff00 | ||
addUserKnob {20 User l ExposureBandsTest} | ||
addUserKnob {26 txt_exposure l "" +STARTLINE T "<h1> Exposure</h1>"} | ||
addUserKnob {26 txt_exposure_2 l "" +STARTLINE T "All values in Stops."} | ||
addUserKnob {26 spacing1 l "" +STARTLINE T " "} | ||
addUserKnob {3 exposure_start l "start" -STARTLINE} | ||
exposure_start -6 | ||
addUserKnob {3 exposure_end l " end" -STARTLINE} | ||
exposure_end 6 | ||
addUserKnob {3 exposure_step l " step" -STARTLINE} | ||
exposure_step 2 | ||
addUserKnob {26 "" +STARTLINE} | ||
addUserKnob {3 _frames_number l "bands number"} | ||
_frames_number {{"(exposure_end - exposure_start) / exposure_step + 1"}} | ||
addUserKnob {7 _exposure l "current exposure"} | ||
_exposure {{"frame >= 0 & frame <= _frames_number?exposure_start+exposure_step*frame:0"}} | ||
addUserKnob {20 About} | ||
addUserKnob {26 toolName l name T ExposureBandsTest} | ||
addUserKnob {26 toolVersion l version T 0.1.1} | ||
addUserKnob {26 toolAuthor l author T "<a style=\"color: rgb(200,200,200);\" href=\"https://mrlixm.github.io/\">Liam Collod</a>"} | ||
addUserKnob {26 toolDescription l description T "Test image rendering with sucessive bands of gradually increasing exposure."} | ||
addUserKnob {26 toolUrl l url T "<a style=\"color: rgb(200,200,200);\" href=\"https://github.com/MrLixm/Foundry_Nuke\">https://github.com/MrLixm/Foundry_Nuke</a>"} | ||
} | ||
Input { | ||
inputs 0 | ||
name image | ||
xpos 0 | ||
ypos 0 | ||
} | ||
EXPTool { | ||
name BandExposure | ||
xpos 0 | ||
ypos 50 | ||
mode Stops | ||
gang false | ||
red {{parent._exposure}} | ||
green {{parent._exposure}} | ||
blue {{parent._exposure}} | ||
} | ||
ContactSheet { | ||
name BandsContactSheet | ||
xpos 0 | ||
ypos 200 | ||
width {{width*columns}} | ||
height {{height}} | ||
rows 1 | ||
columns {{parent._frames_number}} | ||
splitinputs true | ||
startframe 0 | ||
endframe {{parent._frames_number}} | ||
} | ||
Output { | ||
name Output1 | ||
xpos 0 | ||
ypos 350 | ||
} | ||
end_group |