/ HALion Developer Resource / HALion Script / Reference /
getContext
getContext()
Description
Function to obtain the name of the context.
Available in: Controller, Processor.
Return Values
Returns a string with the name of the context in which the function is called.
Example
-- Print the context.
print("Global statement: "..getContext())
function onLoadIntoSlot()
print("onLoadIntoSlot: "..getContext())
end
function onInit()
print("onInit: "..getContext())
end
Output Messages:
Global statement: Controller
onLoadIntoSlot: Controller
onInit: Processor
See also: onLoadIntoSlot, onInit