Export CameraTracker's Featuretracks v1.0

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Henriette Adel
Export the Featuretracks of Nuke's CameraTracker Node into a txt file
or later
28 Jul 2019

Export the Featuretracks of Nuke's CameraTracker

My supervisor found the script on the following website.
It wasn't working properly, so I started dissecting the Node myself, which resulted in this python file.



  1. Copy create_featuretracks_from_cameratracker.py into your nuke environment
  2. Insert following two lines into your menu.py

import create_featuretracks_from_cameratracker
nuke.addOnCreate(create_featuretracks_from_cameratracker.create_knob, nodeClass='CameraTracker')


The resulting txt file is formatted in a way, so that PFTrack can handle the information. Enclosed in the README.txt file is a description of how you can modify the output file to your liking.
Please login in order to download these files.


0 # Francesc Macià 2019-07-31 14:53
Can you post some instruction howit works? Many thanks
0 # Henriette Adel 2019-08-01 07:04
What do you mean exactly?
How the script works: I put comments into the script, if someone wants to try wrap their heads around the code.
How to use it: There should be a Button in a tab called "Export to PFTrack" that creates the file. That is all there is to it.
0 # Francesc Macià 2019-08-01 14:30
Message: Error invalid syntax (, line 1)

0 # Frank Rueter 2019-08-02 01:07
this is caused by line 101 which puts the function object into the script button rather than calling it:
knob = nuke.PyScript_K nob('setfeattra ck', 'Export Feature Tracks', '{}'.format(file_create))

Change this line to the below and it should work:
knob = nuke.PyScript_K nob('setfeattra ck', 'Export Feature Tracks', "create_feature tracks_from_cam eratracker.file _create()")
0 # Henriette Adel 2019-08-02 07:21
a quick question then...
What is causing the syntax error, since it is working fine with me. I thought it would be great if anybody wants to rename the file, so that they don't have to worry about changing the code. But if it is causing trouble, maybe that is something to avoid.

You have no rights to post comments

We have 2752 guests and 130 members online