Often, in the TCP and MCP layouts, I want to keep a set of buttons in the same relative positions while being able to move all of them around.
I define an anchor-point and tie the buttons to that position. As in:
Code:
set mcp_buttons_anchor [54 105]
set mcp.phase + mcp_buttons_anchor h>257 [0 -19 20 20 0 0 0 0] [0]
set mcp.env + mcp_buttons_anchor h>257 [0 01 20 20 0 0 0 0] h>210 [0 -19 20 20 0 0 0 0] [0]
set mcp.fx + mcp_buttons_anchor h>257 [0 18 20 20 0 0 0 0] h>210 [0 -2 20 20 0 0 0 0] [0]
set mcp.fxbyp + mcp_buttons_anchor h>257 [0 38 20 12 0 0 0 0] h>210 [0 18 20 12 0 0 0 0] [0]
This can be improved to:
Code:
set top_left [0 0 0 0 0 0 0 0]
set mcp_buttons_anchor + top_left [54 105]
set mcp.phase + mcp_buttons_anchor h>257 [0 -19 20 20] [0]
set mcp.env + mcp_buttons_anchor h>257 [0 01 20 20] h>210 [0 -19 20 20] [0]
set mcp.fx + mcp_buttons_anchor h>257 [0 18 20 20] h>210 [0 -2 20 20] [0]
set mcp.fxbyp + mcp_buttons_anchor h>257 [0 38 20 12] h>210 [0 18 20 12] [0]
Then all I need to do is change the anchor-point