cameraControlTarget

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the cameraControlTarget
cameraControlTarget()
Associationscameracontrol
Summary

Fetches the name of the camera control that sent the message.

Introduced7.1
OSmac, windows, ios, android
Example
	put cameraControlTarget() into tTarget
	if cameraControlTarget() is "myControl" then
		...
	end if
Values
NameTypeDescription
return

The cameraControlTarget function returns the name of the control.

RelatedCommand: cameraControlDelete, cameraControlDo, cameraControlCreate, cameraControlSet
Function: cameraControlGet, cameraControls
Description

While in the context of a message that has been dispatched from a camera control created using cameraControlCreate, you can use the cameraControlTarget function to fetch the name of the control that sent the message.

Note: Currently, there are no messages sent from camera controls so this function is of limited use. In general, messages dispatched by the camera control are sent to the object containing the script which created it.