Oink
CameraMatch CameraMatch

CameraMatch

CameraMatch (fSpy-style): drag two lines per vanishing point over edges that are parallel in the scene (red X, green Y, blue Z), put the origin on the ground, optionally a reference distance.

raw .md

CameraMatch (fSpy-style): drag two lines per vanishing point over edges that are parallel in the scene (red X, green Y, blue Z), put the origin on the ground, optionally a reference distance. The camera solves live from your lines. The solver was written for this app from the published maths (no fSpy code). Mode 1vp uses a known focal length and the horizon; use_vp3 adds a third point to find the principal point. Create Camera makes a Camera node (+ preview render). Wrong way round? Flip VP1 / VP2.

NodeCameraMatch
MenuTransform › CameraMatch
Names in each format
.oink comp (JSON)"type": "OC_N_cameramatch"
.nk scriptnone: written as an Oink node
Pythonnuke.createNode("OC_N_cameramatch")
Assistant (MCP)create_node(type="CameraMatch")
Tab searchcameramatch, or its initials cm

CameraMatch properties

Inputs and outputs

PortNameType
input 0Imageimage
output 0Imageimage

Knobs

Panel tab Cameramatch, in panel order.

KnobLabelTypeDefaultRange / values.nk knobDescription
reference_frameframefloat1-100000 to 100000 (integer)
modemodemenu2vp2vp (2 vanishing points), 1vp (1 vanishing point + focal)
vp1_axisVP1 axismenuxpxp (+X), xn (-X), yp (+Y), yn (-Y), zp (+Z), zn (-Z)
vp2_axisVP2 axismenuznxp (+X), xn (-X), yp (+Y), yn (-Y), zp (+Z), zn (-Z)
use_vp3VP3 lines (check / refine)boolfalse
refinerefine with all linesbooltrue
pp_modeprincipal pointmenucentercenter (image centre), manual, vp3 (from 3rd vanishing point)
principal_pointprincipal pointvector ×2960, 540-10000 to 10000
focal_lengthfocal length (1 VP, mm)float351 to 500
film_backfilm backmenunukenuke (Nuke default 24.576 x 18.672), ff (Full frame 36 x 24), s35 (Super 35 24.89 x 18.66), alexa_mini_og (Alexa Mini open gate), alexa_mini_16x9 (Alexa Mini 16:9), alexa_lf_og (Alexa LF open gate), alexa35_og (Alexa 35 open gate), red_m...
haperturehoriz aperturefloat24.5760.1 to 100
vaperturevert aperturefloat18.6720.1 to 100
originoriginvector ×2850.8, 81-10000 to 10000
ref_enablereference distanceboolfalse
ref_axisalong axismenuxx (X), y (Y), z (Z)
ref_planestarts on planemenuXZXZ (XZ (ground)), XY, YZ
ref_distancedistancefloat20 to 1000
ref_unitsunitsmenumm, cm, mm, ft, in
show_gridgridbooltrue
grid_planegrid planemenuXZXZ (XZ (ground)), XY, YZ
grid_spacinggrid spacingfloat10.01 to 100
grid_linesgrid linesfloat101 to 100 (integer)
vp1_line1VP1 line 1vector ×4978, 133.5, 1433.6, 321.6-10000 to 10000
vp1_line2VP1 line 2vector ×4409.3, 392.5, 847, 499.8-10000 to 10000
vp2_line1VP2 line 1vector ×4742, 136.5, 358, 332.3-10000 to 10000
vp2_line2VP2 line 2vector ×41401.7, 383.4, 995.4, 498.6-10000 to 10000
vp3_line1VP3 line 1vector ×4289.9, 425.5, 265.6, 722.9-10000 to 10000
vp3_line2VP3 line 2vector ×41513.6, 414.7, 1534, 716.6-10000 to 10000
horizonhorizon (1 VP)vector ×4480, 648, 1440, 648-10000 to 10000
ref_linereference linevector ×4294.9, 364.4, 924.4, 518.7-10000 to 10000

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / values.nk knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring
fittedHandles fitted to platebooleanfalse

On this page