Card to Track

Finding position in 3D space based on Geometry,World position pass, Deep or manual method. Reconcile 3D position to CornerPin, Transform and Roto nodes.

Updated: 4 May 2025

Author: lamakaha

Compatible Nuke versions: 11.0 or later

Compatibility: Linux, Mac, Windows

 

Video Tutorials:

New Features

Full Tutorial 

 

v9.03

Tested on Nuke15, tool will not work on Nuke16 yet, crashing on thread execution, not sure why..... will fix it eventually.

Bugs fixed.

  • Tool was not working wth Anamorphic footage corectly.
  • Roto clip to format was changed to no clip

 

v9.02

Bugs fixed.

  • Fixed broken calculation when label text had spaces inside
  • Tproject had center point offset, now it will be correctly positioned in the center of the card
  • Roto created had still format resolution set to Project fprmat and not input format
  • Nuke 15.1 only it seems - stabilization in CProject became broken

 

v9.01

New features and improvements.

  • Added Delete Button per Tab.
  • CProject will check if another CProject is positioned upstream and adjust 'Aspect Ratio' automatically.
  • Dropdown name in main dropdown changed from '3D Locator' to '3D Locator(Card or Axis)'.

Bugs fixed.

  • When stabilizing and Axis was appearing in weird places and not in the center of the card.
  • In CProject When press 'Stabilize' while 'Set Input' enabled - label was not updated correctly.

Known Issues.

  • Will not work correctly Under Nuke 14.0v1 due to some Nuke Bug. Fixed in Nuke 14.0v5 and higher.
  • When CProject gizmo is created animation curves are not disapearing from Curve Editor, solved only when restart nuke. (Nuke bug ID 337536).

 

 

v9.00

New features and improvements.

  • Nuke 14 tested, still fully based on Classic nodes.
  • Full code refactor, various optimizations especially calculation speed improvements in long sequences.
  • UI and general extraction are reworked for more fluid and user friendly workflow.
  • Tabs per extraction added, extraction info now is stored within CardToTrack node itself.
  • Added Stabilization option in 'Adjust TRS' area to help to get more precise card placement.
  • Grid thikness and subdivision options added.
  • Recalculating card by same name that already was calculated will update exsisting values in Group Tabs.
  • Added option to recalculate camera for existing extracted objects.
  • It is possible now after camera update to update nodes related to the CardToTrack group in nodegraph.
  • Added option to generate linked TProject and CProject.
  • Pixel Aspect ratio is taken from the input and not project settings.
  • Option to choose between roto or rotopaint added.
  • Exposed Axis in the 'Adjust TRS' area to easier card adjustment control.
  • Added support to Axis connected to Camera.
  • Added support to variable backplate offset in Camera.
  • Added support to variable focal lenth values during a shot.
  • Camera is not have to be directly connected to CardToTrack anymore.
  • added input aspect option in CProject.
  • added output format option in CProject.


Known ussues:
It is impossible to create linked roto, (somehow it is not possible to link Roto's matrix knob, Nuke bug?)
Impossible to hide CardToTrack curves (Nuke14 bug?)

Instalation v9.0:

 Paste following files to your nuke plugins directory

1
2
3
4
5

card_to_track.py
CardToTrack2.gizmo
TProject2.gizmo
CProject2.gizmo
my.png

 Add those lines to your meny.py

1
2
3
4
nodesMenu = nuke.menu('Nodes')
nodesMenu.addCommand('Transform/CardToTrack/CardToTrack', 'nuke.createNode(\'CardToTrack2\')',icon='my.png')
nodesMenu.addCommand('Transform/CardToTrack/CProject', 'nuke.createNode(\'CProject2\')',icon='CornerPin.png')
nodesMenu.addCommand('Transform/CardToTrack/TProject', 'nuke.createNode(\'TProject2\')',icon='Transform.png')
 

 

IMPORTANT: Card to track must stay the group, do not convert it to the Gizmo.

 

HUGE Thanks to numerous contributors and complainers that helped me to shape CardToTrack where it is now! Just to mention few:

Eyal Shirazi, Helge Stang, Adrian Pueyo, Marco Meyer, Tony Lyons, Mark Joey Tang, Pete O'Connell, Ivan Busquets, Nikolai Wusterman, Philip Danner, Igor Majdandzic and aff course MAGNIFICENT TRIXTER FOLKS!!!!

 

 

 

 

Sign in or register to download or rate.