Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the Element object of the element to which the macro page is attached.

Excerpt

Example

Code Block
-- must be executed as UI script!
-- print the name and type of the element that has the macro page attached
element = getElement()
print(element.name, element.type)
-- print the name and type of the parent element if there is one
if element.parent then
	print(element.parent.name, element.parent.type)
end