mergedocumentΒΆ

{Node} result mergedocument ( string filename )

Merge a .gproject file into the current project.

This method merges the content of a .gproject file into the current Document. To load other guerilla file types, use the Node method loadfile.

The returned value is a list of the root nodes contained in this file.

local result = mergedocument ("red">"$(SAMPLES)/Grass.gproject")
for k, node in pairs (result) do
    local    path = node:getpath ()
    print ("red">"Loaded node "..path)
end
Arguments:

  • filename The file name to merge

Return:

  • result The created nodes or nil if failed