CompStart

ProLessonsCoursesElementsSoftware

CompStart

Master visual effects with cutting-edge techniques.

Learning

CoursesLessonsPro FeaturesAssetsSoftware

Tools

Tech CheckDisplay CheckMotion BlurCIE 1931PhysLightNuke Tools

Company

InstructorMissionImpressumPrivacyTerms

Projects

Moray RenderEXR ConverterOCIO.ccNuke ToolsDerekVFX

Follow

YouTubeInstagramTikTokThreadsContact

© 2026 CompStart. All rights reserved.

Fill BBox

ToolSets / Utility
Utility

2026-09-07

ToolSets/utility/fillBBox.nk

utility
bbox
overscan
padding
crop
merge
copybbox
View on GitHub

Expands or resets an image’s bounding box by a pixel amount, then copies that bbox onto the original input for overscan and downstream padding.

Fill BBox is a utility group that builds a new bounding box and applies it to your plate without changing the underlying RGB(A) through a conventional composite. The input is cropped to format, widened with AdjBBox, and the resulting bounds are transferred back with CopyBBox.

Use it when a tight data window clips blurs, warps, merges, or edge work. Add Pixels controls how many pixels AdjBBox grows the box; set bbox to chooses the Merge bbox mode that defines those bounds before CopyBBox.

In a comp it sits inline as a padding step: same image content, larger or retargeted bbox, so nodes that respect the data window get the overscan they need.

Script code

set cut_paste_input [stack 0]
version 12.1 v4
push $cut_paste_input
Group {
 name FillBBox
 tile_color 0x421010ff
 selected true
 xpos -1091
 ypos 285
 addUserKnob {20 User l FillBBox}
 addUserKnob {41 numpixels l "Add Pixels" T AdjBBox1.numpixels}
 addUserKnob {41 bbox l "set bbox to " T Merge1.bbox}
 addUserKnob {26 ""}
 addUserKnob {26 lbl l "" +STARTLINE T "Fill BBox v1.0"}
 addUserKnob {22 btn l DerekVFX.ca T "nuke.tcl('start', 'https://derekvfx.ca')" +STARTLINE}
}
 Input {
  inputs 0
  name Input
  xpos 447
  ypos 61
 }
set Nd8f2800 [stack 0]
 Crop {
  box {0 0 {input.width} {input.height}}
  reformat true
  crop false
  name Crop1
  xpos 600
  ypos 92
 }
 AdjBBox {
  numpixels 105
  name AdjBBox1
  label "\[value numpixels]"
  xpos 592
  ypos 127
 }
push $Nd8f2800
 Merge2 {
  inputs 2
  output none
  name Merge1
  xpos 558
  ypos 192
 }
push $Nd8f2800
 CopyBBox {
  inputs 2
  name CopyBBox1
  xpos 447
  ypos 277
 }
 Output {
  name Output1
  xpos 447
  ypos 1055
 }
end_group