PositionConverter

A tool to convert position data from 3D to 2D

Updated: 21 August 2023

Author: dangerdave

Compatible Nuke versions: 11.0 or later

Compatibility: Linux, Mac, Windows

 PositionConverter

position converter

 

At the moment this tool only converts selected vertices to 2D tracks.

With the resulting Tracker Node you can finally decide yourself if you want to output a Cornerpin or only a Transform and which points should be used for it. That makes it very flexible for the user.

A really nice feature is that you can change the output format. This is usefull if you need the 2D position on a different format than the root format (undistort format for example).

It is planned to add more options (like position pass related tracks) and export possibilities.

 

Install

1. Move the folder 'DTools' to a location of your choice

2. Add the path to init.py: nuke.pluginAddPath('path/to/DTools')

3. Start Nuke and you should see the DTools menu in the Toolbar

 

Know Issues

I've tested this tool in v8.0, v12.1, v13.2 and v14.0 on Windows. It is possible that something doesn't work on an other OS. There are two known bugs in Nuke that will lead to an incorrect result or error:

1. If you which to 2D view while executing the tool, the result will be incorrect (Bud ID: 544734)

2. In Nuke 14 only: if you use the new Beta Geometry Nodes some of the internal Nuke scripts don't work and an error message appears (Bug ID: 514631)

 

Here is a quick guide how it should be used:

 

1. Change to selection mode to Vertex Selection and select at least one vertex point

vertex selection

 

2. Create a PositionConverter node, connect the node to a camera, click the 'Start' button and enter the frame range

tool execution

 

3. It looks a bit weird while the tool is working, but in the end it should be fine

3d view

 

 

References

Foundry 3D Python Reference

RotoShapesToTrackers script from Magno Borgo

 

 

Sign in or register to download or rate.