Skip to content

MK_api.ae_templateΒΆ

Builds an Attribute Editor template programmatically: rollups, groups, and rows of attribute widgets. Used to lay out the AE for a node container.

Row widget codes (in the add_row_ names): bt = button, ck = checkbox, eb = edit box, mp = map plug, co = color, cb = combo box. Each add_row_ takes one attribute per cell, left to right; a cell value is an attribute scripting name, a redir key, or an inline redir like "a->b".

define_redir( key, path )
Defines a redirect mapping key to the attribute at path.
begin_rollup( key )
Opens a collapsible rollup titled key. Close with end_rollup().
end_rollup()
Closes the current rollup.
begin_group( key )
Opens a group titled key. Close with end_group().
end_group()
Closes the current group.
add_attr( attr )
Adds a single attribute row. attr is an attribute scripting name, a redir key, or an inline redir like "a->b".
add_row_bt( a )
Row: button.
add_row_ck_ck( a, b )
Row: checkbox, checkbox.
add_row_ck_eb( a, b )
Row: checkbox, edit box.
add_row_cb_mp( a, b )
Row: combo box, map plug.
add_row_eb_ck( a, b )
Row: edit box, checkbox.
add_row_eb_eb( a, b )
Row: edit box, edit box.
add_row_eb_mp( a, b )
Row: edit box, map plug.
add_row_eb_co( a, b )
Row: edit box, color.
add_row_eb_bt( a, b )
Row: edit box, button.
add_row_mp_ck( a, b )
Row: map plug, checkbox.
add_row_co_ck( a, b )
Row: color, checkbox.
add_row_co_mp( a, b )
Row: color, map plug.
add_row_bt_bt( a, b )
Row: button, button.
add_row_ck_eb_eb( a, b, c )
Row: checkbox, edit box, edit box.
add_row_ck_eb_co( a, b, c )
Row: checkbox, edit box, color.
add_row_eb_ck_co( a, b, c )
Row: edit box, checkbox, color.
add_row_eb_ck_ck( a, b, c )
Row: edit box, checkbox, checkbox.
add_row_eb_eb_ck( a, b, c )
Row: edit box, edit box, checkbox.
add_row_eb_eb_eb( a, b, c )
Row: edit box, edit box, edit box.
add_row_eb_eb_mp( a, b, c )
Row: edit box, edit box, map plug.
add_row_co_mp_ck( a, b, c )
Row: color, map plug, checkbox.
add_row_co_co_ck( a, b, c )
Row: color, color, checkbox.
add_row_bt_bt_bt( a, b, c )
Row: button, button, button.
add_row_eb_eb_eb_ck( a, b, c, d )
Row: edit box, edit box, edit box, checkbox.
add_row_eb_eb_eb_co( a, b, c, d )
Row: edit box, edit box, edit box, color.
add_row_bt_bt_bt_bt( a, b, c, d )
Row: button, button, button, button.