Here’s a simple one I wrote.

I’ve found some on Nukepedia to be too noisey but they will probably handle 
corners better than this.
It does an internal comp but to be honest you should turn that off and merge 
under a slightly shrunk matte version of the original

Howard Jones
Visual Effects Supervisor

set cut_paste_input [stack 0]
version 10.0 v3
push $cut_paste_input
Group {
 name extendEdges
 knobChanged 
"n=nuke.thisNode()\nk=nuke.thisKnob()\nclearNodes=nuke.allNodes()\nif 
k.name()in('xTend','nSize','filterType', 'mergeUnder'):\n    nuke.selectAll()\n 
   for i in nuke.allNodes('Output'):\n        i\['selected'].setValue(False)\n  
  for i in nuke.allNodes('Input'):\n        i\['selected'].setValue(False)\n    
nuke.nodeDelete()    \n    dt=nuke.createNode('Dot', inpanel=False)\n    for i 
in range(int(n\['xTend'].value())):\n        b=nuke.createNode('Blur', 
inpanel=False)\n        b\['size'].setValue(n\['nSize'].value())\n        
b\['filter'].setValue(n\['filterType'].value())\n    
unp=nuke.createNode('Unpremult', inpanel=False)\n    pb=nuke.createNode('Blur', 
inpanel=False)\n    pb\['size'].setExpression('parent.postBlur')\n \n    
mge=nuke.nodes.Merge()\n    mge\['operation'].setValue('under')\n    
mge.connectInput(n\['mergeUnder'].value(), pb)\n    
mge.connectInput(1-n\['mergeUnder'].value(), dt)\n    
mge\['disable'].setExpression('!parent.mergeUnder')\n    for i in 
nuke.allNodes('Output'): i.connectInput(0, mge)\n\n"
 selected true
 xpos 237
 ypos 271
 addUserKnob {20 User l Extend}
 addUserKnob {3 xTend l extend t "recursively extends the edge"}
 xTend 5
 addUserKnob {14 nSize l blur t "blur for each extend layer" R 0 100}
 nSize 1
 addUserKnob {4 filterType l filter M {box triangle quadratic gaussian "" ""}}
 filterType gaussian
 addUserKnob {7 postBlur l "post blur" t "blur result" R 0 20}
 addUserKnob {6 mergeUnder l merge +STARTLINE}
 mergeUnder true
}
 Input {
  inputs 0
  name Input1
  xpos -610
  ypos 148
 }
 Dot {
  name Dot1
  xpos -576
  ypos 174
 }
set N550327a0 [stack 0]
 Blur {
  size 1
  name Blur1
  xpos -610
  ypos 192
 }
 Blur {
  size 1
  name Blur2
  xpos -610
  ypos 236
 }
 Blur {
  size 1
  name Blur3
  xpos -610
  ypos 280
 }
 Blur {
  size 1
  name Blur4
  xpos -610
  ypos 324
 }
 Blur {
  size 1
  name Blur5
  xpos -610
  ypos 368
 }
 Unpremult {
  name Unpremult1
  xpos -610
  ypos 412
 }
 Blur {
  size {{parent.postBlur}}
  name Blur6
  selected true
  xpos -610
  ypos 438
 }
push $N550327a0
 Merge {
  inputs 2
  operation under
  name Merge1
  xpos -500
  ypos 434
  disable {{!parent.mergeUnder}}
 }
 Output {
  name Output1
  xpos -472
  ypos 1083
 }
end_group


-- 



*A X I S V F X*

The Bottle Yard Studios

Whitchurch Lane

Bristol BS14 0BH

 

axis-vfx.com
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to