GetUIEditor(handle)
Description
Section titled “Description”The GetUIEditor function returns a text string with the name of the UI editor for the object.
Arguments
Section titled “Arguments”-
Handle:
The function takes a handle of the type “light_userdata” as an argument.
It can be omitted when using the colon notation on an object.The Colon Notation is a way to omit the handle as the first argument when using the Object functions.
This is the general syntax with the colon notation: object:function()
This is the general syntax with standard handle notation: object.function(object)
Learn more in the Lua Functions - Object API topic.
Return
Section titled “Return”- String:
The function returns a text string with the name of the object’s UI editor.
Examples
Section titled “Examples”This example prints the name of the selected sequence’s editor.
| Copy CodeLua |
| ``` |
| return function() |
-- SelectedSequence() creates a handle to the selected sequence.local selectedSequence = SelectedSequence()-- Get the name of the editor for the sequence object.local seqEditor = selectedSequence:GetUIEditor()-- Print some feedback.if seqEditor ~= nil then Printf("The name of the editor is: " .. seqEditor)else Printf("The object doesn not appear to have an editor.")endend