Package nukescripts :: Module cameratracker :: Class LinkableImportPanel
[hide private]
[frames] | no frames]

Class LinkableImportPanel

source code

PythonPanel --+

Modal dialog for selecting a Linkable node in the script.

The following class creates a modal dialog with one UI element: an enum of nodes that derive from the LinkableI class. (The LinkableI interface allows us to easily query and import 2D data from a variety of sources, particularly the Tracker node.) The user then selects their source node to import the data from. Once Ok'ed, the code below creates a new user track for each LinkableInfo object returned in the node.linkableKnobs() function with an XY co-ordinate, and then copies each animation curve entry.

Instance Methods [hide private]
__init__(self) source code
showModalDialog(self, dstNode) source code