nukescripts.cameratracker.LinkableImportPanel
- class nukescripts.cameratracker.LinkableImportPanel[source]
Bases:
nukescripts.panels.PythonPanelModal 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.
Methods
acceptAdd a child widget.
addCallbackaddKnobaddToPanecancelCalled when the widget is asked to be closed.
createDestroy the widget.
finishModalDialogGet the height.
Hide the widget.
Return the enabled state.
Returns true if the widget still exists.
knobChangedknobChangedCallbackknobsokreadKnobsrejectremoveCallbackremoveKnobEnable or disable the widget.
Set the maximum size.
Set the minimum size.
Set the tooltip.
Show or hide the widget.
Show the widget.
Show the dialog as modal, and wait for it to be dismissed.
showModalDialogGet the tooltip.
Get the width.
writeKnobs- add()
Add a child widget.
- close()
Called when the widget is asked to be closed.
- destroy()
Destroy the widget.
- height()
Get the height.
- hide()
Hide the widget.
- isEnabled()
Return the enabled state.
- isValid()
Returns true if the widget still exists. i.e. has not been closed by the user.
- setEnabled()
Enable or disable the widget.
- setMaximumSize()
Set the maximum size.
- setMinimumSize()
Set the minimum size.
- setTooltip()
Set the tooltip.
- setVisible()
Show or hide the widget.
- show()
Show the widget.
- showModal(defaultKnobText='')
Show the dialog as modal, and wait for it to be dismissed.
- tooltip()
Get the tooltip.
- width()
Get the width.