Hey all, hoping someone might know of a way to make a macro to swap between two UI layouts. I swap between my laptop and desktop pretty frequently, and would like a way to swap between saved UI layouts a little faster than right clicking the text box, going into edit mode, then going through the drop down to change layouts.
1 Like
I can’t seem get to that linked post anymore.
Anyone have an active link or a way to do this?
Maybe this version of the link will work.
1 Like
It did! Thank you so much!
I wanted a UI toggle button. I am not changing screens or anything, just want to flip between two different UIs.
This seems to work, but this would be the very first script I’ve ever written, so I just want to make sure I’m not messing something up.
/run if (C_EditMode.GetLayouts().activeLayout~=6) then C_EditMode.SetActiveLayout(6); elseif (C_EditMode.GetLayouts().activeLayout==6) then C_EditMode.SetActiveLayout(3); end;
That’s fine. For the sake of pendantry and readability, you could just use
/run if C_EditMode.GetLayouts().activeLayout==6 then C_EditMode.SetActiveLayout(3) else C_EditMode.SetActiveLayout(6) end
Thanks! I’ll make those changes. I appreciate your help!