CompStart

Pro레슨코스엘리먼트소프트웨어

CompStart

최첨단 시각효과 기술을 마스터하세요.

학습

코스레슨Pro 기능에셋소프트웨어

Tools

Tech CheckDisplay CheckMotion BlurPhysLightNuke Tools

회사

Instructor미션사이트맵개인정보처리방침이용약관

프로젝트

Moray RenderEXR ConverterOCIO.ccNuke ToolsDerekVFX

Follow

YouTubeInstagramTikTokThreads문의

© 2026 CompStart. All rights reserved.

발전기

ToolSets / Draw
Draw

2026-09-07

ToolSets/draw/generator.nk

그리다
발전기
방사형
삽화
마스크
공익사업
구배
가이드
GitHub에서 보기

위치와 형식을 기반으로 점, 선, 방사형 영역, 부드러운 원, 비네트 등을 생성하는 절차적 드로잉 도구입니다.

Generator는 입력 없이 간단한 기하학적 패턴을 출력하는 드로잉 기즈모로, 마스크, 가이드, 그레이딩 도우미에 사용할 수 있습니다. 점, 가로선, 세로선, 방사형, 원, 비네트 중에서 모드를 선택하고 형식과 위치를 설정하면 해당 지점을 중심으로 전체 프레임에 패턴을 그립니다.

점, hline, vline은 선택한 위치를 통과하는 정확한 픽셀 위치 또는 축을 표시합니다. 방사형은 점으로부터의 정규화된 거리를 매핑하고, 원은 부드러운 역제곱 감쇠를 사용합니다. div는 출력 강도를 조절하고, hue는 선 및 점 모드에서 회색 균형을 조정합니다.

비네트 모드는 비네트 양, 중간점, 둥글기, 페더, 하이라이트 복구 및 하이라이트 대 색상 우선순위를 설정할 수 있는 내장 비네트 경로로 전환됩니다. 컴포지션에서 전체 프레임 참조 또는 가장자리 흐림 효과가 필요할 때 '중앙'을 사용하여 위치를 포맷 중앙에 맞출 수 있습니다.

Script code

set cut_paste_input [stack 0]
version 12.1 v4
Group {
 inputs 0
 name generator
 tile_color 0x421010ff
 selected true
 xpos -1126
 ypos 667
 addUserKnob {20 User l generator}
 addUserKnob {41 format T Constant1.format}
 addUserKnob {4 mode M {dot hline vline radial circle vignette ""}}
 mode radial
 addUserKnob {12 pos l position}
 pos {966 468}
 addUserKnob {22 center -STARTLINE T "f = nuke.root().format()\nnuke.thisNode().knob('pos').setValue((f.width()/2, f.height()/2))"}
 addUserKnob {26 ""}
 addUserKnob {6 color_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
 addUserKnob {41 outgray l hue T HueShift1.outgray}
 addUserKnob {7 div R 0.0001 1}
 div 1
 addUserKnob {26 ""}
 addUserKnob {26 lbl l "" t "October 17, 2019 - Created\nOctober 22, 2019 - Add extra features\nOctober 23, 2019 - Renamed Generator from DotGen" +STARTLINE T "Generator v1.1"}
 addUserKnob {22 btn l DerekVFX.ca T "nuke.tcl('start', 'https://derekvfx.ca')" +STARTLINE}
}
 Constant {
  inputs 0
  name Constant1
  xpos 447
  ypos -58
 }
 Dot {
  name Dot9
  note_font_size 40
  xpos 481
  ypos 59
 }
set Nd920c00 [stack 0]
 Dot {
  name Dot2
  note_font_size 40
  xpos 77
  ypos 59
 }
set Nd920800 [stack 0]
 Dot {
  name Dot3
  note_font_size 40
  xpos -123
  ypos 59
 }
set Nd920400 [stack 0]
 Dot {
  name Dot4
  note_font_size 40
  xpos -323
  ypos 59
 }
set Nd920000 [stack 0]
 Dot {
  name Dot5
  note_font_size 40
  xpos -523
  ypos 59
 }
 Dot {
  name Dot8
  note_font_size 40
  xpos -523
  ypos 470
 }
push $Nd920000
 Expression {
  temp_name0 zz
  temp_expr0 "sqrt((x-pos.x)**2 + (y-pos.y)**2)"
  temp_name1 remap
  temp_expr1 1/(((zz/diag)**2)+1)
  temp_name3 out
  temp_expr3 remap
  expr0 out
  expr1 out
  expr2 out
  name Expression4
  label "\[knob expr3]"
  xpos -357
  ypos 207
  addUserKnob {20 User}
  addUserKnob {7 diag}
  diag {{"sqrt(width**2 + height**2)"}}
 }
 Dot {
  name Dot7
  note_font_size 40
  xpos -323
  ypos 470
 }
push $Nd920400
 Dot {
  name Dot6
  note_font_size 40
  xpos -123
  ypos 470
 }
push $Nd920800
 Expression {
  temp_name0 zz
  temp_expr0 "sqrt((x-pos.x)**2 + (y-pos.y)**2)"
  temp_name3 out
  temp_expr3 zz/diag
  expr0 out
  expr1 out
  expr2 out
  name Expression3
  label "\[knob expr3]"
  xpos 43
  ypos 183
  addUserKnob {20 User}
  addUserKnob {7 diag}
  diag {{"sqrt(width**2 + height**2)"}}
 }
 Dot {
  name Dot1
  note_font_size 40
  xpos 77
  ypos 470
 }
push $Nd920c00
 Expression {
  temp_name0 dot
  temp_expr0 "x == int(pos.x)"
  temp_name1 out
  temp_expr1 dot/div
  expr0 out
  expr1 out
  expr2 out
  expr3 dot
  name Expression6
  label "\[knob temp_expr0]"
  xpos 177
  ypos 132
 }
push $Nd920c00
 Expression {
  temp_name0 dot
  temp_expr0 "y == int(pos.y)"
  temp_name1 out
  temp_expr1 dot/div
  expr0 out
  expr1 out
  expr2 out
  expr3 dot
  name Expression5
  label "\[knob temp_expr0]"
  xpos 317
  ypos 130
 }
push $Nd920c00
 Expression {
  temp_name0 dot
  temp_expr0 "x == int(pos.x) && y == int(pos.y)"
  temp_name1 out
  temp_expr1 dot/div
  expr0 out
  expr1 out
  expr2 out
  expr3 dot
  name Expression2
  label "\[knob temp_expr0]"
  xpos 447
  ypos 130
 }
 Switch {
  inputs 3
  which {{mode}}
  name Switch2
  label "\[value which]"
  xpos 447
  ypos 221
 }
 HueShift {
  outgray 0.288
  name HueShift1
  xpos 447
  ypos 271
 }
 Expression {
  expr0 r/div
  expr1 g/div
  expr2 b/div
  name Expression1
  label "\[knob expr3]"
  xpos 447
  ypos 316
 }
set Nd974c00 [stack 0]
 Dot {
  name Dot11
  note_font_size 40
  xpos 328
  ypos 389
 }
push $Nd974c00
 Dot {
  name Dot10
  note_font_size 40
  xpos 419
  ypos 389
 }
push $Nd974c00
 Switch {
  inputs 7
  which {{mode}}
  name Switch1
  label "\[value which]"
  xpos 447
  ypos 460
 }
 Output {
  name Output1
  xpos 447
  ypos 1055
 }
 Group {
  inputs 0
  name vignette
  tile_color 0x421010ff
  xpos 911
  ypos 122
  addUserKnob {20 User l vignette}
  addUserKnob {4 priority M {"highlight priority" "color priority" "" "" ""}}
  addUserKnob {7 amount R -1 1}
  amount -0.4
  addUserKnob {7 midpoint R -1 1}
  addUserKnob {7 roundness R -1 1}
  addUserKnob {7 feather}
  feather 0.2
  addUserKnob {7 highlights l "highlight recovery"}
  highlights 0.2
  addUserKnob {26 ""}
  addUserKnob {26 lbl l "" +STARTLINE T "Vignette v1.3"}
  addUserKnob {22 btn l DerekVFX.ca T "nuke.tcl('start', 'https://derekvfx.ca')" +STARTLINE}
 }
  Input {
   inputs 0
   name Input
   xpos 447
   ypos 61
  }
set Nd9a3800 [stack 0]
push $Nd9a3800
  Dot {
   name Dot4
   xpos 239
   ypos 178
  }
set Nd9a3400 [stack 0]
  Dot {
   name Dot5
   xpos -13
   ypos 178
  }
set Nd9a3000 [stack 0]
  Colorspace {
   colorspace_out Cineon
   name Colorspace1
   xpos -170
   ypos 239
  }
  Expression {
   temp_name0 avg
   temp_expr0 (r+g+b)/3
   expr3 smoothstep(1/avg,0,pow(highlights,2.4))
   name Expression2
   xpos -170
   ypos 305
  }
push $Nd9a3000
  Expression {
   temp_name0 radial
   temp_expr0 "sqrt((x*round-(w*round)/2)**2 + ((y/round)/pax-((h/round)/pax)/2)**2)/diagonal"
   temp_name1 remap
   temp_expr1 lerp(clamp(smoothstep(mp,1,radial)),clamp(lerp(0,1-mp,radial)),feather)
   temp_name2 profile
   temp_expr2 1/(((remap)**2)+1)
   temp_name3 o
   temp_expr3 lerp(profile,profile*-1+2,(amount*2+1)/2)
   expr0 o
   expr1 o
   expr2 o
   expr3 remap
   name Expression1
   xpos -47
   ypos 283
   addUserKnob {20 User}
   addUserKnob {7 round l roundness}
   round {{lerp(-1,.9,1,1.1,roundness)}}
   addUserKnob {7 mp}
   mp {{lerp(-1,0,1,1,midpoint)}}
   addUserKnob {7 le l "long edge"}
   le {{"(w >= h ? w : h)"}}
   addUserKnob {7 diagonal R 0 4000}
   diagonal {{(sqrt(w**2+h**2)/2)}}
   addUserKnob {7 aspect R 0.5 2.5}
   aspect {{input.width/input.height}}
   addUserKnob {7 w R 0 4000}
   w {{input.width}}
   addUserKnob {7 h R 0 4000}
   h {{input.height}}
   addUserKnob {7 pax R 0 2}
   pax {{input.pixel_aspect}}
  }
push $Nd9a3400
  Merge2 {
   inputs 2+1
   operation multiply
   output {rgba.red rgba.green rgba.blue -rgba.alpha}
   name Merge1
   xpos -47
   ypos 416
  }
set Nd9a2000 [stack 0]
  Colorspace {
   colorspace_out CIE-LCH
   name Colorspace2
   xpos 94
   ypos 590
  }
  set Cd9dbc00 [stack 0]
push $Nd9a3400
clone $Cd9dbc00 {
   xpos 205
   ypos 589
   selected false
  }
  Copy {
   inputs 2
   from0 rgba.red
   to0 rgba.red
   name Copy1
   xpos 205
   ypos 666
  }
  Colorspace {
   colorspace_in CIE-LCH
   name Colorspace3
   xpos 205
   ypos 725
  }
push $Nd9a2000
  Dot {
   name Dot1
   xpos -13
   ypos 913
  }
  Switch {
   inputs 2
   which {{priority}}
   name Switch1
   xpos 205
   ypos 909
  }
  CopyBBox {
   inputs 2
   name CopyBBox1
   xpos 447
   ypos 997
  }
  Output {
   name Output1
   xpos 447
   ypos 1055
  }
 end_group
end_group