Close

Monitors Class

The Monitors class describes the set of all installed monitor objects. It can be accessed with the monitors object, found in the automatically imported td module. It operates much like a Python list of monitor objects.

print(len(monitors))		# number of monitors 
print(monitors[0])			# first monitor in the list
for m in monitors:
	print(m.description)	# print all installed monitors' descriptions


Members

primaryint (Read Only):

The primary monitor display.

widthint (Read Only):

The width of the combined monitor area, measured in pixels.

heightint (Read Only):

The height of the combined monitor area, measured in pixels.

leftint (Read Only):

The leftmost edge of the combined monitor area, measured in pixels.

rightint (Read Only):

The rightmost edge of the combined monitor area, measured in pixels.

topint (Read Only):

The topmost position of the combined monitor area, measured in pixels.

bottomint (Read Only):

The bottommost position of the combined monitor area, measured in pixels.

Methods

locate(x,y)td.Monitor:

Return the monitor at the specified mouse coordinates, or None.

refresh()None:

Causes the application to behave as if a monitor device has changed. Monitors DAT and other sources will be updated. This is typically done automatically by the operating system, but in special cases can be triggered manually with this method.

TouchDesigner Build: