Page 1 of 1

Change fixture order of a group

Posted: 29 Nov 2024, 03:26
by kimwida
I want to change fixture order of a group including 10 fixtures.
I tried it and it failed.

Code: Select all

<step>Group.SetGroupFixtureOrder(Handles.GetHandle("Groups",0,6),{10,9,8,7,6,5,4,3,2,1})</step>


Please advise me how to use this api.

Re: Change fixture order of a group

Posted: 05 Dec 2024, 14:24
by Gregory
The types that the function Group.SetGroupFixtureOrder use are not ones that can be defined or converted in a macro specifically the LayoutElementInformation type. The function is used internally by the Group Layout Editor window and it creates and updates the data that it passes to that function.

I think the route I would try to accomplish this would be putting the fixtures in the programmer in the desired order and then calling Group.Editor.UpdateFixtureLocationsFromProgrammer. By default the order in the programmer is based on the order that fixtures are selected, this could be individually or perhaps using a command e.g. Command.RunCommand("10 THRO 1").

Re: Change fixture order of a group

Posted: 06 Dec 2024, 00:13
by kimwida
The reason I try to find out to change group's fixture order is that I want to make the order like this.
1,2,3,4,5,5,4,3,2,1 or 5,4,3,2,1,1,2,3,4,5
And I can't select two fixtures at once in command.
But I think I got a hint from you.
Thank you.