there is a gizmo on nukepedia which craetes a straight line from 2
definable points.

called TNT_line



set cut_paste_input [stack 0]
version 6.2 v2
push $cut_paste_input
Gizmo {
 name Gizmo2
 help "TNT_Line by Michael Habenicht\nwww.tinitron.de\n\nDraw a line
from Point 0 to Point 1"
 selected true
 xpos -329
 ypos 6099
 info 0
 p0 {10 10}
 p1 {190 190}
 RotoPaint1_color 1
 RotoPaint1_opacity 1
 RotoPaint1_brush_size 10
 RotoPaint1_brush_spacing 0.05000000075
 RotoPaint1_brush_hardness 0.2
 RotoPaint1_writeon_end 1
}
 Input {
  inputs 0
  name Input1
  xpos 132
  ypos -122
 }
 RotoPaint {
  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 1024 S 0 778
   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: 512
    NodeType: 5
    CubicCurve: "" {
     Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1035.5 S 0 757
     Type: 3 Flag: 2080 Dim: 3
     NumOfPoints: 2
     0 L 0 4096 0.5 2 0 0 "parent.p0.x" 1 0 772 L 0 4096 0.5 2 0 0
"parent.p0.y" 1 0 528 S 0 0 0 0 L 0 4096 0.5 2 0 0 "parent.p1.x" 1 0
1318.2 L 0 4096 0.5 2 0 0 "parent.p1.y" 1 0 955.2 S 0 0 0
     NumOfAttributes: 46
     "vis" S 0 1 "r" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_color.r" 1
0 1 "g" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_color.g" 1 0 1 "b" L 0
4096 0.5 2 0 0 "parent.RotoPaint1_color.b" 1 0 1 "a" L 0 4096 0.5 2 0
0 "parent.RotoPaint1_color.a" 1 0 1 "ro" S 0 0 "go" S 0 0 "bo" S 0 0
"ao" S 0 0 "opc" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_opacity" 1 0 1
"bs" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_brush_size" 1 0 10 "bsp" L
0 4096 0.5 2 0 0 "parent.RotoPaint1_brush_spacing" 1 0 0.05 "h" L 0
4096 0.5 2 0 0 "parent.RotoPaint1_brush_hardness" 1 0 0.2 "src" S 0 0
"bm" S 0 0 "dt" S 0 0 "ds" S 0 0 "dh" S 0 0 "bt" S 0 0 "bu" S 0 0
"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 1024 "spy" S 0 778 "stot" S 0 0 "sto"
S 0 0 "sv" S 0 0 "sf" S 0 1 "sb" S 0 1 "ltn" S 0 1 "ltm" S 0 1 "ltt" S
0 0 "ws" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_writeon_start" 1 0 0
"we" L 0 4096 0.5 2 0 0 "parent.RotoPaint1_writeon_end" 1 0 1 "ep1" S
0 0 "ep2" S 0 0 "ep3" S 0 0 "tt" S 0 14 "nv" S 0 1 "view1" S 0 1
    }
   }
   NumOfChildren: 0
  }
 }
}
}
  toolbox {selectAll {
  { 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 dt 0 bu 0 ssx 1 ssy 1 sf 1 sb 1 ltt 0 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}
  color {{parent.RotoPaint1_color.r} {parent.RotoPaint1_color.g}
{parent.RotoPaint1_color.b} {parent.RotoPaint1_color.a}}
  opacity {{parent.RotoPaint1_opacity}}
  lifetime_type "all frames"
  view {}
  motionblur_on true
  brush_size {{parent.RotoPaint1_brush_size}}
  brush_spacing {{parent.RotoPaint1_brush_spacing}}
  brush_hardness {{parent.RotoPaint1_brush_hardness}}
  dynamic_transparency false
  buildup false
  writeon_start {{parent.RotoPaint1_writeon_start}}
  writeon_end {{parent.RotoPaint1_writeon_end}}
  source_black_outside true
  name RotoPaint1
  xpos 132
  ypos -88
 }
 Output {
  name Output1
  xpos 132
  ypos 18
 }
end_group




>
> On Wed, Aug 24, 2011 at 21:23, [email protected] <[email protected]>
> wrote:
>>
>> Ha, that isn't perhaps as bad as it sounds actually! :)
>>
>>
>>
>> 2011/8/24 Pat Wong <[email protected]>
>>>
>>> use a wacom pen and a ruler  :)
>>>
>>>
>>>
>>>
>>>
>>> On 24 August 2011 13:58, Tim BOWMAN <[email protected]> wrote:
>>> > In a fit of desperation I once made a paintstroke that approximated my
>>> > desired line, then deleted all the knots except the first one and the
>>> > last
>>> > one. It wasn't fancy, but it worked.
>>> >
>>> > -t
>>> >
>>> >
>>> > On Wed, Aug 24, 2011 at 6:17 AM, Nuke <[email protected]> wrote:
>>> >>
>>> >> Not in front of Nuke at the moment, and I can't remember if there is a
>>> >> modifier to to so...two workarounds:
>>> >> A - You could draw a spline then use Feather and Falloff attributes to
>>> >> give it width + softness/hardness.
>>> >> B - Draw a straight line as best you can with the brush, then edit the
>>> >> stroke, selecting and deleting the points in between the ends.
>>> >> Hope that helps -
>>> >>
>>> >> Craig Tozzi
>>> >> twothousandstrong
>>> >> venice, ca
>>> >>
>>> >>
>>> >> On Aug 23, 2011, at 1:13 PM, Howard Cabalfin wrote:
>>> >>
>>> >> Anyone know how to create a straight line using the Nuke RotoPaint
>>> >> Node?
>>> >> I've tried holding down the modifier keys such as shift or alt while
>>> >> painting but no straight line.
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> Nuke-users mailing list
>>> >> [email protected], http://forums.thefoundry.co.uk/
>>> >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>> >
>>> >
>>> > _______________________________________________
>>> > Nuke-users mailing list
>>> > [email protected], http://forums.thefoundry.co.uk/
>>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>> >
>>> _______________________________________________
>>> Nuke-users mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>>
>>
>>
>> --
>> Freelance Nuke Op.
>> www.torbjornlindback.com
>> +44 7754 193 130
>>
>>
>> _______________________________________________
>> Nuke-users mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
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