GrandMA3 Assign Groups to Worlds

Описание к видео GrandMA3 Assign Groups to Worlds

An advanced Workflow, to Assign Groups to Worlds, with a little help from a Plugin.

Insert a Note into a World to Assign the Groups to the World. The groups are either specified with names, in quotation marks, or as numbers, without quotation marks. Separated by a comma.

Groups{"Group Name",6}

Just Copy and Paste the Following Code into a New Plugin.

----
local function main()
local worlds = DataPool().Worlds:Children()
for _, world in ipairs(worlds) do
local note = world.NOTE
local pieces = {}
for match in note:gmatch("Groups%b{}") do
local contentInsideBraces = match:sub(8, -2)
for piece in contentInsideBraces:gmatch("([^,]+)") do
table.insert(pieces, piece)
end
end
if #pieces ~= 0 then
Cmd("ClearAll")
Cmd("Select World 1")
for _, value in ipairs(pieces) do
Cmd('SelectFixtures Group '..value)
end
Cmd("Store World "..world.INDEX.." /o")
Cmd("ClearAll")
end
end
end
return main
----

★Discord Server★
  / discord  
★Instagram★
  / gaphux.light  
★Facebook★
  / gaphux  

Комментарии

Информация по комментариям в разработке