Change fixture order of a group

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
kimwida
Posts: 258
Joined: 05 Aug 2016, 16:26
Location: Seoul

Change fixture order of a group

Postby kimwida » 29 Nov 2024, 03:26

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.
User avatar
Gregory
Posts: 1349
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: Change fixture order of a group

Postby Gregory » 05 Dec 2024, 14:24

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").
User avatar
kimwida
Posts: 258
Joined: 05 Aug 2016, 16:26
Location: Seoul

Re: Change fixture order of a group

Postby kimwida » 06 Dec 2024, 00:13

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.

Who is online

Users browsing this forum: No registered users and 2 guests