Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

getElement()

Description

Function to obtain the element object of an element with a macro page. If you call this function in the UI script of a macro page, the element object of the element that has the macro page attached will be returned. Depending on the element where the macro page is attached to, the returned object can be of the type program, layer or MIDI module, for example.

The function can only be called in an UI script.

Available in: UI.

Return Values

Returns the element object of the element that has the macro page attached.

Example

-- 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)
  • No labels