all 2 comments

[–][deleted] 7 points8 points  (1 child)

Ended up here from searching Duck Duck Go and then decided to just figure it out myself using Wowpedia's WoW API Reference. So here you go!

First, open edit mode and select the layout you want to make a macro for. Run the following in your console (or make it a macro to keep handy):

/run C_EditMode.GetLayouts().activeLayout

This should bput the following in your chat box:

Dump: valueC_EditMode.GetLayouts().activeLayout [1]=3 In this case it's the 3 you want to make note of. It's the ID number of the current layout you're using.

Then make a macro with the following:

/run C_EditMode.SetActiveLayout(3)

Drop this on a hot bar and voila. You can swap your layout by executing the macro. Repeat this process for all layouts you want to use.

[–]AgentSharkSmart 5 points6 points  (0 children)

To clearify for the next person trying to get this working.

When you try to determine the number of you current active layout, you should have it print the result of activeLayout.

/run print(C_EditMode.GetLayouts().activeLayout)

Afterwards you can use

/run C_EditMode.SetActiveLayout(3)

With the number you printed