| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476 | 
							- set cut_paste_input [stack 0]
 - version 10.5 v3
 - push $cut_paste_input
 - Group {
 -  name ndg_STMapper
 -  selected true
 -  xpos -94
 -  ypos -196
 -  hide_input true
 -  addUserKnob {20 User l STMapper}
 -  addUserKnob {1 distortionName l "Distortion node"}
 -  distortionName name
 -  addUserKnob {41 mode T settings.mode}
 -  addUserKnob {41 refFrame l "  reference frame" -STARTLINE T settings.refFrame}
 -  addUserKnob {41 setCurrFrame l "set current" -STARTLINE T settings.setCurrFrame}
 -  addUserKnob {26 ""}
 -  addUserKnob {41 typeDist l "distortion type" T settings.typeDist}
 -  addUserKnob {26 ""}
 -  addUserKnob {41 overscan T settings.overscan}
 -  addUserKnob {26 ""}
 -  addUserKnob {41 STMap l "output STMap" T settings.STMap}
 -  addUserKnob {26 Prerender}
 -  addUserKnob {41 usePrerender l "Use pre-rendered ST map" T settings.usePrerender}
 -  addUserKnob {41 file l "exr file" T WriteSTMap.file}
 -  addUserKnob {41 Render T WriteSTMap.Render}
 -  addUserKnob {26 ""}
 -  addUserKnob {26 camNote l Note: T "Please connect cam directly without nodes inbetween."}
 - }
 -  BackdropNode {
 -   inputs 0
 -   name BackdropNode1
 -   tile_color 0x1f1f1fff
 -   label matchmove
 -   note_font_size 22
 -   xpos -101
 -   ypos 1332
 -   bdwidth 324
 -   bdheight 469
 -  }
 -  BackdropNode {
 -   inputs 0
 -   name BackdropNode2
 -   tile_color 0x1f1f1fff
 -   label stabilize
 -   note_font_size 22
 -   xpos 317
 -   ypos 1331
 -   bdwidth 348
 -   bdheight 470
 -  }
 -  BackdropNode {
 -   inputs 0
 -   name BackdropNode3
 -   tile_color 0x1f1f1fff
 -   label "get data"
 -   note_font_size 42
 -   xpos -473
 -   ypos 472
 -   bdwidth 1593
 -   bdheight 164
 -  }
 -  Input {
 -   inputs 0
 -   name Cam
 -   xpos 627
 -   ypos 580
 -  }
 -  Camera2 {
 -   matrix {
 -       {{settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix}}
 -       {{settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix}}
 -       {{settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix}}
 -       {{settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix} {settings.mode?Cam.parent.input.matrix(refFrame):Cam.parent.input.matrix}}
 -     }
 -   focal {{"\[value Cam.parent.input.focal]"}}
 -   haperture {{"\[value Cam.parent.input.haperture]*settings.overscan"}}
 -   vaperture {{"\[value Cam.parent.input.vaperture]*settings.overscan"}}
 -   name masterCam
 -   xpos 555
 -   ypos 784
 -  }
 - set N2c5f800 [stack 0]
 -  Dot {
 -   name Dot2
 -   xpos 579
 -   ypos 1407
 -  }
 - set N2c5f400 [stack 0]
 -  FrameHold {
 -   first_frame {{settings.refFrame}}
 -   name FrameHold2
 -   xpos 545
 -   ypos 1561
 -  }
 -  Dot {
 -   name Dot7
 -   xpos 579
 -   ypos 1635
 -  }
 - push $N2c5f400
 - push $N2c5f800
 -  Input {
 -   inputs 0
 -   name Source
 -   xpos -407
 -   ypos 553
 -   number 1
 -  }
 - set N2c5ec00 [stack 0]
 -  Shuffle {
 -   red black
 -   green black
 -   blue black
 -   alpha black
 -   name Shuffle1
 -   xpos -227
 -   ypos 719
 -  }
 -  Reformat {
 -   type scale
 -   scale {{settings.overscan}}
 -   resize none
 -   black_outside true
 -   name Reformat1
 -   xpos -227
 -   ypos 772
 -  }
 - set N2c5e400 [stack 0]
 -  Expression {
 -   expr0 (x+0.5)/(width)
 -   expr1 (y+0.5)/(height)
 -   name Expression2
 -   xpos -29
 -   ypos 837
 -  }
 -  NoOp {
 -   name UNDISTORT
 -   xpos -29
 -   ypos 910
 -  }
 - set N3f817800 [stack 0]
 -  Dot {
 -   name Dot11
 -   xpos -139
 -   ypos 914
 -  }
 -  Dot {
 -   name Dot10
 -   xpos -139
 -   ypos 1035
 -  }
 - push $N3f817800
 -  LensDistortion {
 -   serializeKnob ""
 -   serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
 -   invertDistortion true
 -   name nukeLensDistortion
 -   xpos 143
 -   ypos 938
 -  }
 - push $N3f817800
 -  LD_3DE4_Radial_Standard_Degree_4 {
 -   channels {rgba.red rgba.green -rgba.blue none}
 -   field_of_view_xa_unit {{"\[value \[value parent.distortionName].field_of_view_xa_unit]"}}
 -   field_of_view_ya_unit {{"\[value \[value parent.distortionName].field_of_view_ya_unit]"}}
 -   field_of_view_xb_unit {{"\[value \[value parent.distortionName].field_of_view_xb_unit]"}}
 -   field_of_view_yb_unit {{"\[value \[value parent.distortionName].field_of_view_yb_unit]"}}
 -   tde4_focal_length_cm {{"\[value \[value parent.distortionName].tde4_focal_length_cm]"}}
 -   tde4_custom_focus_distance_cm {{"\[value \[value parent.distortionName].tde4_custom_focus_distance_cm]"}}
 -   tde4_filmback_width_cm {{"\[value \[value parent.distortionName].tde4_filmback_width_cm]"}}
 -   tde4_filmback_height_cm {{"\[value \[value parent.distortionName].tde4_filmback_height_cm]"}}
 -   tde4_lens_center_offset_x_cm {{"\[value \[value parent.distortionName].tde4_lens_center_offset_x_cm]"}}
 -   tde4_lens_center_offset_y_cm {{"\[value \[value parent.distortionName].tde4_lens_center_offset_y_cm]"}}
 -   tde4_pixel_aspect {{"\[value \[value parent.distortionName].tde4_pixel_aspect]"}}
 -   Distortion_Degree_2 {{"\[value \[value parent.distortionName].Distortion_Degree_2]"}}
 -   U_Degree_2 {{"\[value \[value parent.distortionName].U_Degree_2]"}}
 -   V_Degree_2 {{"\[value \[value parent.distortionName].V_Degree_2]"}}
 -   Quartic_Distortion_Degree_4 {{"\[value \[value parent.distortionName].Quartic_Distortion_Degree_4]"}}
 -   U_Degree_4 {{"\[value \[value parent.distortionName].U_Degree_4]"}}
 -   V_Degree_4 {{"\[value \[value parent.distortionName].V_Degree_4]"}}
 -   Phi_Cylindric_Direction {{"\[value \[value parent.distortionName].Phi_Cylindric_Direction]"}}
 -   B_Cylindric_Bending {{"\[value \[value parent.distortionName].B_Cylindric_Bending]"}}
 -   name threeDEqualizerDistortion
 -   xpos -29
 -   ypos 936
 -  }
 -  Switch {
 -   inputs 3
 -   which {{typeDist}}
 -   name Switch3
 -   xpos -29
 -   ypos 1031
 -  }
 - set N2c46900 [stack 0]
 -  Project3D2 {
 -   inputs 2
 -   name Project3D1
 -   xpos 405
 -   ypos 1031
 -  }
 -  Project3D2 {
 -   inputs 2
 -   name Project3D3
 -   xpos 405
 -   ypos 1442
 -  }
 -  Input {
 -   inputs 0
 -   name Geo
 -   xpos 1025
 -   ypos 586
 -   number 2
 -  }
 -  Dot {
 -   name Dot4
 -   xpos 1059
 -   ypos 1499
 -  }
 - set N3f857800 [stack 0]
 -  Dot {
 -   name Dot5
 -   xpos 1059
 -   ypos 1549
 -  }
 -  ApplyMaterial {
 -   inputs 2
 -   name ApplyMaterial2
 -   selected true
 -   xpos 405
 -   ypos 1545
 -  }
 - push $N2c5e400
 -  Dot {
 -   name Dot6
 -   xpos -193
 -   ypos 1635
 -  }
 - set N3f856c00 [stack 0]
 -  Dot {
 -   name Dot1
 -   xpos -193
 -   ypos 1739
 -  }
 -  ScanlineRender {
 -   inputs 3
 -   conservative_shader_sampling false
 -   motion_vectors_type distance
 -   name ScanlineRender1
 -   xpos 405
 -   ypos 1735
 -  }
 - push $N2c5f400
 -  Dot {
 -   name Dot16
 -   xpos 267
 -   ypos 1407
 -  }
 - set N40669c00 [stack 0]
 -  Dot {
 -   name Dot17
 -   xpos 267
 -   ypos 1635
 -  }
 - push $N40669c00
 -  FrameHold {
 -   first_frame {{settings.refFrame}}
 -   name FrameHold1
 -   xpos 90
 -   ypos 1397
 -  }
 - push $N2c46900
 -  Project3D2 {
 -   inputs 2
 -   name Project3D2
 -   xpos -29
 -   ypos 1403
 -  }
 - push $N3f857800
 -  ApplyMaterial {
 -   inputs 2
 -   name ApplyMaterial1
 -   xpos -29
 -   ypos 1495
 -  }
 - push $N3f856c00
 -  ScanlineRender {
 -   inputs 3
 -   conservative_shader_sampling false
 -   motion_vectors_type distance
 -   name ScanlineRender2
 -   xpos -29
 -   ypos 1631
 -  }
 -  Switch {
 -   inputs 2
 -   which {{settings.mode}}
 -   name Switch1
 -   xpos -29
 -   ypos 1883
 -  }
 -  NoOp {
 -   name DISTORT
 -   xpos -29
 -   ypos 2129
 -  }
 - set N4026f400 [stack 0]
 -  Dot {
 -   name Dot12
 -   xpos -139
 -   ypos 2131
 -  }
 -  Dot {
 -   name Dot13
 -   xpos -139
 -   ypos 2252
 -  }
 - push $N4026f400
 -  Dot {
 -   name Dot15
 -   xpos 160
 -   ypos 2133
 -  }
 -  LensDistortion {
 -   serializeKnob ""
 -   serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
 -   name nukeLensDistortion1
 -   xpos 126
 -   ypos 2248
 -  }
 - push $N4026f400
 -  LD_3DE4_Radial_Standard_Degree_4 {
 -   channels {rgba.red rgba.green -rgba.blue none}
 -   direction distort
 -   field_of_view_xa_unit {{"\[value \[value parent.distortionName].field_of_view_xa_unit]"}}
 -   field_of_view_ya_unit {{"\[value \[value parent.distortionName].field_of_view_ya_unit]"}}
 -   field_of_view_xb_unit {{"\[value \[value parent.distortionName].field_of_view_xb_unit]"}}
 -   field_of_view_yb_unit {{"\[value \[value parent.distortionName].field_of_view_yb_unit]"}}
 -   tde4_focal_length_cm {{"\[value \[value parent.distortionName].tde4_focal_length_cm]"}}
 -   tde4_custom_focus_distance_cm {{"\[value \[value parent.distortionName].tde4_custom_focus_distance_cm]"}}
 -   tde4_filmback_width_cm {{"\[value \[value parent.distortionName].tde4_filmback_width_cm]"}}
 -   tde4_filmback_height_cm {{"\[value \[value parent.distortionName].tde4_filmback_height_cm]"}}
 -   tde4_lens_center_offset_x_cm {{"\[value \[value parent.distortionName].tde4_lens_center_offset_x_cm]"}}
 -   tde4_lens_center_offset_y_cm {{"\[value \[value parent.distortionName].tde4_lens_center_offset_y_cm]"}}
 -   tde4_pixel_aspect {{"\[value \[value parent.distortionName].tde4_pixel_aspect]"}}
 -   Distortion_Degree_2 {{"\[value \[value parent.distortionName].Distortion_Degree_2]"}}
 -   U_Degree_2 {{"\[value \[value parent.distortionName].U_Degree_2]"}}
 -   V_Degree_2 {{"\[value \[value parent.distortionName].V_Degree_2]"}}
 -   Quartic_Distortion_Degree_4 {{"\[value \[value parent.distortionName].Quartic_Distortion_Degree_4]"}}
 -   U_Degree_4 {{"\[value \[value parent.distortionName].U_Degree_4]"}}
 -   V_Degree_4 {{"\[value \[value parent.distortionName].V_Degree_4]"}}
 -   Phi_Cylindric_Direction {{"\[value \[value parent.distortionName].Phi_Cylindric_Direction]"}}
 -   B_Cylindric_Bending {{"\[value \[value parent.distortionName].B_Cylindric_Bending]"}}
 -   name threeDEqualizerDistortion1
 -   xpos -29
 -   ypos 2155
 -  }
 -  Switch {
 -   inputs 3
 -   which {{typeDist}}
 -   name Switch4
 -   xpos -29
 -   ypos 2248
 -  }
 - set N2c47680 [stack 0]
 -  Dot {
 -   name Dot14
 -   xpos 5
 -   ypos 2481
 -  }
 - set N402bdc00 [stack 0]
 -  Reformat {
 -   type "to box"
 -   format "3200 1800 0 0 3200 1800 1 3200_1800"
 -   box_width {{Source.width}}
 -   box_height {{Source.height}}
 -   resize none
 -   pbb true
 -   name Reformat2
 -   xpos -29
 -   ypos 2645
 -  }
 -  Dot {
 -   name Dot8
 -   label "ST map out"
 -   note_font_size 22
 -   xpos 5
 -   ypos 3002
 -  }
 -  Dot {
 -   name Dot3
 -   xpos 5
 -   ypos 3080
 -  }
 - push $N402bdc00
 - push $N2c5ec00
 -  Reformat {
 -   type scale
 -   scale {{settings.overscan}}
 -   resize none
 -   pbb true
 -   name Reformat7
 -   xpos -407
 -   ypos 776
 -  }
 -  STMap {
 -   inputs 2
 -   channels rgba
 -   uv rgb
 -   name STMap2
 -   xpos -407
 -   ypos 2477
 -  }
 -  Reformat {
 -   type "to box"
 -   format "3200 1800 0 0 3200 1800 1 3200_1800"
 -   box_width {{Source.width}}
 -   box_height {{Source.height}}
 -   resize none
 -   pbb true
 -   name Reformat8
 -   xpos -407
 -   ypos 2652
 -  }
 -  Dot {
 -   name Dot9
 -   label "RGBA out"
 -   note_font_size 22
 -   xpos -373
 -   ypos 2997
 -  }
 -  Switch {
 -   inputs 2
 -   which {{settings.STMap}}
 -   name Switch2
 -   xpos -407
 -   ypos 3076
 -  }
 -  Output {
 -   name Output1
 -   xpos -407
 -   ypos 3248
 -  }
 -  NoOp {
 -   inputs 0
 -   name settings
 -   xpos 98
 -   ypos 590
 -   hide_input true
 -   addUserKnob {20 User}
 -   addUserKnob {6 usePrerender l "Use prerender" +STARTLINE}
 -   addUserKnob {6 STMap l "output STMap" +STARTLINE}
 -   addUserKnob {22 setCurrFrame l "set current" T "frame = nuke.frame()\n\nnuke.thisNode()\['refFrame'].setValue(frame)" +STARTLINE}
 -   addUserKnob {4 mode M {matchmove stabilize}}
 -   mode stabilize
 -   addUserKnob {4 typeDist l "distortion type" M {3de nuke none}}
 -   typeDist none
 -   addUserKnob {3 refFrame l "reference frame"}
 -   refFrame 1015
 -   addUserKnob {7 overscan}
 -   overscan 1.1
 -  }
 - push $N2c47680
 -  Write {
 -   file_type exr
 -   reading {{settings.usePrerender}}
 -   checkHashOnRead false
 -   version 6
 -   beforeRender createWriteDir.createWriteDir()
 -   name WriteSTMap
 -   xpos 78
 -   ypos 2299
 -   postage_stamp true
 -  }
 - end_group
 - # Creation Time=Thu Jul 27 10:12:05 2017
 - # Creator=Andy
 
 
  |