GetUIEditor(handle)

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » GetUIEditor(handle)
Version 2.2

説明

GetUIEditor 関数は、オブジェクトのUIエディタの名前を含む文字列を返します。

引数

  • handle:
    light_userdata 型のハンドルです。オブジェクトでコロン記法を用いる場合は省略できます。

戻り値

  • string:
    オブジェクトのUIエディタの名前を含む文字列を返します。

選択したシーケンスのエディタ名を出力します。

Lua
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.")
end
end