td Module

From Derivative
Revision as of 10:08, 2 October 2017 by Cimpleo (talk | contribs)
Jump to navigation Jump to search


The td module is the main module containing all application related classes and objects. It is imported by default when the application launches.


Members[edit]

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

absTimeabsTime (Read Only):

Reference to the AbsTime object.

appapp (Read Only):

Reference to the application installation.

extext (Read Only):

Reference to the extension searching object. See extensions for more information.

familiesdict (Read Only):

A dictionary containing a list of operator types for each operator family. Example: for a in families['SOP']:

licenseslicenses (Read Only):

Reference to the currently installed licences.

modmod (Read Only):

Reference to the Module On Demand object.

monitorsmonitors (Read Only):

Reference to the group of available monitors.

opOP (Read Only):

The OPFinder object, for accessing operators through paths or shortcuts.

Note a version of this method that searches relative to a specific operator is also in OP Class. op(pattern1, pattern2...) → OP or None Returns the first OP whose path matches the given pattern, relative to the current OP, or None if nothing is found. Multiple patterns may be specified which are all added to the search. Numeric OP ids may also be used.

  • pattern - Can be string following the Pattern Matching rules, specifying which OP to return, or an integer, which must be an OP Id. Multiple patterns can be given, the first matching OP will be returned.
b = op('project1')
b = op('foot*', 'hand*')
b = op(154)

op.shortcut → OP

An operator specified with by a shortcut. If no operator exists an exception is raised. These shortcuts are global, and must be unique. That is, cutting and pasting an operator with a Global OP Shortcut specified will lead to a name conflict. One shortcut must be renamed in that case. Furthermore, only components can be given Global OP Shortcuts.

  • shortcut - Corresponds to the Global OP Shortcut parameter specified in the target operator.
b = op.Videoplayer # or alternatively op.Videoplayer, as its not relative to this operator.

To list all Global OP Shortcuts:

for x in op:
	print(x)

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.

meOP (Read Only):

Reference to the current operator that is being executed or evaluated. This can be used in parameter expressions, or DAT scripts.