GMA3 Assign Groups to Worlds

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • 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

Комментарии • 3

  • @felixaudinos3954
    @felixaudinos3954 7 месяцев назад

    ❤🎉❤🎉❤ thanks

  • @tiofil9815
    @tiofil9815 7 месяцев назад

    ❤❤ Thanks

  • @J-Gx
    @J-Gx 7 месяцев назад

    Thank you! I was hoping for this in 2.0!