Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Last active February 11, 2016 14:43
Show Gist options
  • Save tokejepsen/3446862668187d1e5550 to your computer and use it in GitHub Desktop.
Save tokejepsen/3446862668187d1e5550 to your computer and use it in GitHub Desktop.
Nuke: Maya Fit Resolution Gate Vertical
Input this expression into the window scale u and v:
(root.format.w/root.format.h)/(haperture/vaperture)
Example:
set cut_paste_input [stack 0]
version 9.0 v7
push $cut_paste_input
Camera2 {
translate {9.865051023 8.871446617 9.908203517}
rotate {-27.93835273 45 -3.818528769e-014}
focal 35
haperture 35.99992752
vaperture 23.99995041
near 0.1000000015
win_scale {{(root.format.w/root.format.h)/(haperture/vaperture)} {(root.format.w/root.format.h)/(haperture/vaperture)}}
focal_point 5
fstop 5.599999905
name Camera1
selected true
xpos 190
ypos -438
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment