| grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object API » Export(handle, string, string) | Version 2.2 |
Export 関数は、オブジェクトをXMLファイルにエクスポートします。
選択したシーケンスをXMLファイルにエクスポートします。
Lua |
return function() --SelectedSequence() creates a handle to the selected sequence. local selectedSequence = SelectedSequence() if selectedSequence == nil then ErrPrintf("The selected sequence could not be found.") return end --The path is stored in a variable. local exportPath = GetPath(Enums.PathType.UserSequences) --The actual export function. local success = selectedSequence:Export(exportPath, "mySelectedSequence.xml") --Print some feedback. if success then Printf("The sequence is exported to: " .. exportPath) else ErrPrintf("The sequence could not be exported.") end end |
Import - XMLテーブルをインポートするためのオブジェクト関数。