NUKE
Nuke Notes
https://compositingmentor.com/category/nuke-tips/
In the Properties Panel
Cmd+drag properties from one node to another will creates an expression link.
Command-alt to return the slider to default
‘Shift + Y’ to connect nodes.
Click and hold a connector and using alt key at the same time to navigate through the node graph without letting go of that connector.
connecting nodes up or down, U or Y
bookmarks, you can book mark your back drops and use the "J" key to bring up your book mark list.
Control + shift then click and drag to swap a node with another one
Ctrl-shift-click to select all upstream nodes
Colors/Grading
Lift: Adjusts black levels (dark tones/shadows) uniformly across RGB components.
Individual RGB Lift: Adjusts black levels per color channel (e.g., Blue Lift).
Gamma: Adjusts midtones, making them brighter or darker without affecting shadows and highlights.
Individual RGB Gamma: Adjusts midtones per color channel.
Gain: Adjusts white levels (highlights) uniformly across RGB components.
Offset: Adjusts shadows/blacks by changing brightness/color levels without affecting midtones and highlights.
White/Black Point: Sets the white and black points of the image.
Multiply: Lightens a channel by multiplying its values, preserving the blackpoint.
References:
Key Concepts:
Gamma = Midtones (middle gray levels)
Gain = Highlights/Whites
Use sliders (M/H, S/M) to adjust thresholds between levels.
Nuke Shortcuts:
Branch a node: Hold
ShiftReplace a node: Hold
CtrlMerge node: Expect a premult
Never color correct premult images
Always transform on premultiplied images
S: Settings
L: Line up nodes
D: Disable nodes
I: In (set in point on timeline)
O: Out (set out point on timeline)
Grade Adjustments:
Lift: Brighten the blacks.
Gain: Adjust the whites.
Gamma: Use for midtones, does not affect whites or blacks.
Roto:
Use NukeX for image undistortion.
Color Matching:
Add a colorLookup node at the end (using an S shape for final color correction).
color match using wave form: https://www.youtube.com/watch?v=z5C4q_Lqlx8
New window/new scope/wave form

Using MatchGrade node: https://www.youtube.com/watch?v=QWriKDlIvyI
Easy way is to get a grade node and adjust the multiply for each colors by looking at the r, g, and b separately. :
1 - Click on r to check the red color, adjust the red of the multiply.
Source: https://www.youtube.com/watch?v=jol7ut_YqDo

Primatte/Nuke Workflow:
Smart Select Background: Ctrl-select to catch all green.
Clean Background and Foreground.
Spill Sponge: Ctrl-click around areas with remaining green.
Spill+: Clean remaining green spill.
Matte-: Remove excess matte (e.g., in motion blur).
Restore Detail: Cmd-click to bring back details in hair.
TIME
Use timewarp to slowdown.
Useful Links:
How to
source: https://www.youtube.com/watch?v=lEpMwNRmr_c&t=114s
3d Projections:
Use “textured: Source: https://www.youtube.com/watch?v=6NstXhOmhrM&list=RDQM1SD_6roH1VY&start_radio=1

Transform node will always blur the image. Put the premult before and color correct before.
alt option on the write node will save the “v001” number
OLD:
Premult and channels
Example of taking the alpha from a red channel. If you want to do colour correction this will not work since it will affect the whole image. You need to add a remote note.

Premult and unpremult

Shuffle node. TO make full alpha.

You can use the shuffle node to add an extra note like you see on image below. if you click on a and if you pipe an image, you can use dogs channel and connect them.
source: https://youtu.be/giI8elFp4QQ?t=724

You can drag the whole new channel to connect all of them. https://youtu.be/giI8elFp4QQ?t=1018
Use the channel Shuffle node to create different channels (masks) and re-use them later in your comp.
Extra square on the right means there’s extra layers in the EXR.

Merge Operations
Nuke Merge Node Operations Explained | Important Merge operations in Nuke
https://www.youtube.com/watch?v=KXJYfbaDpro&list=PLSOZz8ksRllCGPNTRmEyQ9PGsqzjfQGq_&index=5
use UNDER if you want to keep the size of the composition but reverse the layers.
Place a copy node at the end of the your CG Shuffles to keep a clean Alpha.

Use Command Key on a node will show a bunch of dots in your connections to help re-arrange (.)
Use Crop Node to get rid of the crap around.
If you have weird Alpha issues adding a node, it could be that your Alpha is not Zero. Make sure you merge your node have the output to RGB and not RGBA.

You can also add a shuffle and make sure the Alpha is set to 1.

Cleaning up and organizing your script. https://www.youtube.com/watch?v=7Rr_jH1bCUE
Use Snap to grid

Node:
On the Dot node, you can add a “hide Input”. Good idea to look there when you are wondering what's going on in somebody else script.

Grabbing a bunch of nodes and clicking “l” will line them up straight.
When you have a bunch of nose selected, and you clicked on the letter M it will merge all of them.
Form follows function https://youtu.be/_cLpaJenYDQ?t=113
Let the shape of the node graph inform you (and others) as to what it's doing
Image operations run north/south
Masking operations run east/west
Modules run north/south internally and east/west as groups (Piles of nodes)
examples:

This example, instead of having to know for Roto shape it's sometimes easier to have a few more notes, but but to visually understand right away, what is going on

Nuke 101 (Pioneer Panel's Library) - Ron Ganbar
Alpha Channel Rules of Thumb (Page 42):
Most 3D software renders are premultiplied.
Straight Images:
Images without incorporated alpha channels are straight.
If the black areas in the alpha channel are not black in the RGB channels, the image is straight.
When creating alpha channels (e.g., via keys or shape creation nodes), verify whether the result is premultiplied. The concept will be revisited in alpha-channel creation tools.
Premultiplied Image Guidelines:
Never color correct premultiplied images.
Always transform (e.g., move, blur) premultiplied images.
A premultiplied image has black RGB values where the alpha channel is black.
Node Operations (Pages 48-49):
Replacing Nodes:
Select a node, holdCtrl/Cmd, and create a new node to replace it.Recap of Node Creation:
Insert a node: Select a node in the DAG and create a new one.
Branch a node: Hold
Shift.Replace a node: Hold
Ctrl/Cmd.
Select All Upstream Nodes: Hold
Ctrl/Cmdand drag to select.
Quick Workflow Tips:
Rename Versions Quickly (Page 72):
SelectWrite1, then pressAlt/Option+Arrow Upto update the file name to the next version (e.g., v02).Diffuse Pass (Page 87):
The diffuse pass combines the light and color of an object.
Bookmarks:
Click in the node or use ctrl-shift-b
HDRI
use a SphericalTransform to offset texture in X for a semaless HDR.
Foundry
Merge nodes
https://youtu.be/KXJYfbaDpro?si=mCLmcTFNFfTS-a0b
Merge with different dimensions might output wrong format
Using "under" will keep format and use alpha
Over with premult same as "matte" wh premult
(7:05)
Create roto
Merge node, use "mask"

In = use alpha of B instead of A

You can use in or out to choose some alpha and invert others

Plug a reformat before your mask and use the reformat of the image you want to use

https://youtu.be/jB7m0VRDyqY?si=mKWVcBuqMeMrXKjn
You can create new Merge layers directly in the Merge

To bring back texture on a paint use tho trick:
Create a blur node
Re pipe your image with Merge divide

You can choose "none"
No opération on the beauty but adding layers like masks

Using channel merge

You can use operations in the masks

Taking a rgb image matte and output an alpha
Use channel merge
Or you can shuffle each of them

And use the channel merge

Disjoint over
To fix alias caused by hold out operations

https://youtu.be/QwFPd_nF2uM?si=luzPUDumDflkpD95
Over =
1 ( white) Minus alpha
Multiplied by your B node
Plus À node

Premult
Will multiply rgb by the alpha
To get a Roto with alpha
Add "replace with alpha" to it
Then a premult

Use aloha masking for "using the included alpha" to your opération.

B layer drive the size of your comp
Bottom here is the size of your comp
Could be driven by the size of your project (?) in what order?

Top corner right is the size of processing
Union
Get the bounding Bic of both and keep them.
Meaning you can use the data later

You can keep the bb of A or B layer

You can use layers ( diffuse, etc)
And operation them directly
