grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object API » Import(handle, file_path, file_name) | Version 2.2 |
The Import object Lua function imports an object written in XML format.
![]() |
制限 |
The imported files need to exist already to be imported.
|
![]() |
重要 |
The Lua import will merge the content of the XML file into the object without any confirmation pop-up.
|
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.
This example imports the content of an XML file into the selected sequence. The file is called "MySelectedSequence", and it is located at "../gma3_library/datapools/sequences". The file can be created using the example in the Export object function.
Lua |
return function() |
Export - object function used to export an XML table.