Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
function GetObjectParentType (objtype : String) : String |
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "MACRO" && Event.SourceId == "1" && Event.Action == "RUN")
{
var objtype = "CAM_ZONE";
DebugLogString(objtype);
for(var i = 1; i<=4; i=i+1)
{
objtype = GetObjectParentType(objtype);
DebugLogString(objtype);
}
} |