I'll toss one out there but I should say I've always thought I had my
rotation formula wrong.  call it a work in progress...

good for what it's mostly used for - stereo distance between eyes

I always wanted to do it properly like Dunsworth's NRuler but the viewer gl
stuff is still a bit over my head.




set cut_paste_input [stack 0]
version 6.3 v5
push $cut_paste_input
Group {
 name TapeMeasure
 selected true
 xpos 1027
 ypos 275
 addUserKnob {20 Measure}
 addUserKnob {14 distance t "Shows the distance between the 2 points in X
and Y" R 0 100}
 distance {{"((x1)-(x2)>0) ? (x1)-(x2) : -((x1)-(x2))"} {"((x1.y)-(x2.y)>0)
? (x1.y)-(x2.y) : -((x1.y)-(x2.y))"}}
 addUserKnob {7 angle l INVISIBLE +INVISIBLE R -360 360}
 angle
{{atan((x2.x-x1.x)/(x2.y-x1.y))*(180/pi)>=0?-atan((x2.x-x1.x)/(x2.y-x1.y))*(180/pi)+90:-(atan((x2.x-x1.x)/(x2.y-x1.y))*(180/pi)+90)}}
 addUserKnob {12 x1}
 x1 {1150 576}
 addUserKnob {12 x2}
 x2 {1190 576}
 addUserKnob {6 off l "disable text overlay" +STARTLINE}
 addUserKnob {6 line_overlay l "disable dotted line" +STARTLINE}
}
 Input {
  inputs 0
  name Input
  xpos 0
 }
set N1e1b3250 [stack 0]
add_layer {rgba redguard1.glow rgba.edgeblur}
 Shuffle {
  red black
  green black
  blue black
  alpha black
  name Shuffle1
  xpos 129
  ypos 60
 }
 RotoPaint {
  cliptype none
  curves {AnimTree: "" {
 Version: 1.2
 Flag: 0
 RootNode: 1
 Node: {
  NodeName: "Root" {
   Flag: 512
   NodeType: 1
   Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1174 S 0 576
   NumOfAttributes: 10
   "vis" S 0 1 "opc" S 0 1 "mbo" S 0 1 "mb" S 0 1 "mbs" S 0 0.5 "fo" S 0 1
"fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0
  }
  NumOfChildren: 1
  Node: {
   NodeName: "Paint1" {
    Flag: 576
    NodeType: 5
    CubicCurve: "" {
     Transform: 0 0 S 1 137 0 S 1 137 0 S 1 137 0 S 1 137 1 S 1 137 1 S 1
137 0 S 1 137 1187.75 S 1 137 609
     Type: 3 Flag: 2080 Dim: 3
     NumOfPoints: 2
     0 L 0 4096 0.5 2 0 0 "parent.x1.x" 1 1 "" 137 1150 0 0 0 0 256 0 L 0
4096 0.5 2 0 0 "parent.x1.y" 1 1 "" 137 587 0 0 0 0 256 0 S 1 137 1 0 0 L 0
4096 0.5 2 0 0 "parent.x2.x" 1 1 "" 137 1188.2 0 0 0 0 256 0 L 0 4096 0.5 2
0 0 "parent.x2.y" 1 1 "" 137 588 0 0 0 0 256 0 S 1 137 1 0
     NumOfAttributes: 47
     "vis" S 0 1 "r" S 0 1 "g" S 0 1 "b" S 0 1 "a" S 0 1 "ro" S 0 0 "go" S
0 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bs" S 0 4 "bsp" S 0 1 "h" S 0 0
"src" S 0 0 "bm" S 0 0 "dt" S 0 1 "ds" S 0 0 "dh" S 0 0 "bt" S 0 0 "bu" S 0
1 "inv" S 0 0 "stx" S 0 0 "sty" S 0 0 "str" S 0 0 "sr" S 0 0 "ssx" S 0 1
"ssy" S 0 1 "ss" S 0 0 "spx" S 0 1174 "spy" S 0 576 "stot" S 0 0 "sto" S 0
0 "sv" S 0 0 "sf" S 0 1 "sb" S 0 1 "ltn" S 0 184 "ltm" S 0 184 "ltt" S 0 0
"ws" S 0 0.1 "we" S 0 0.9 "ep1" S 0 0 "ep2" S 0 0 "ep3" S 0 0 "tt" S 0 14
"nv" S 0 2 "view1" S 0 1 "view2" S 0 2
    }
   }
   NumOfChildren: 0
  }
 }
}
}
  toolbox {selectAll {
  { selectAll ssx 1 ssy 1 sf 1 }
  { createBezier ssx 1 ssy 1 sf 1 sb 1 }
  { createBSpline ssx 1 ssy 1 sf 1 sb 1 }
  { createEllipse ssx 1 ssy 1 sf 1 sb 1 }
  { createRectangle ssx 1 ssy 1 sf 1 sb 1 }
  { brush ssx 1 ssy 1 sf 1 sb 1 ltn 137 ltm 137 tt 14 }
  { eraser src 2 ssx 1 ssy 1 sf 1 sb 1 }
  { clone src 1 ssx 1 ssy 1 sf 1 sb 1 }
  { reveal src 3 ssx 1 ssy 1 sf 1 sb 1 }
  { dodge src 1 ssx 1 ssy 1 sf 1 sb 1 }
  { burn src 1 ssx 1 ssy 1 sf 1 sb 1 }
  { blur src 1 ssx 1 ssy 1 sf 1 sb 1 }
  { sharpen src 1 ssx 1 ssy 1 sf 1 sb 1 }
  { smear src 1 ssx 1 ssy 1 sf 1 sb 1 }
} }
  toolbar_show_paint_selection true
  toolbar_brush_hardness 0.200000003
  toolbar_lifetime_type all
  toolbar_source_transform_scale {1 1}
  toolbar_source_transform_center {320 240}
  colorOverlay 0
  lifetime_type "all frames"
  lifetime_start 184
  lifetime_end 184
  brush_size 4
  brush_spacing 1
  brush_hardness 0
  writeon_start 0.1000000015
  writeon_end 0.8999999762
  source_black_outside true
  createNewTrack {{-1} "-1\t(none)\t-1" "1000\tNew Track Layer\t1000"}
  name RotoPaint1
  xpos 129
  ypos 117
  disable {{line_overlay}}
 }
push $N1e1b3250
 Merge2 {
  inputs 2
  name Merge1
  xpos 0
  ypos 169
 }
 Text {
  message "\n\n\n\n\n\nx \[value parent.distance.w] y \[value
parent.distance.h]\nangle:  \[value angle]\n"
  font /usr/share/fonts/bitstream-vera/Vera.ttf
  size 10
  leading 0.2
  xjustify center
  yjustify center
  Transform 1
  box {587 288 1761 864}
  center {{(parent.x1+parent.x2)/2 i} {(parent.x1+parent.x2)/2 i}}
  name Text1
  xpos 0
  ypos 218
  disable {{parent.off i}}
 }
 NoOp {
  name versionator
  label "v2\n8-15-11\njbills\nadded overlays"
  xpos 0
  ypos 306
 }
 Output {
  name Output1
  xpos 0
  ypos 390
 }
 Viewer {
  input_process false
  name Viewer1
  xpos -191
  ypos 181
 }
end_group
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to