Reorder DAT

From TouchDesigner 099 Wiki

Summary

The Reorder DAT allows you to reorder the rows and columns of the input table. You can also use In Specified Order option to get duplicate copies of rows and columns.

PythonIcon.png reorderDAT_Class

Parameters

Reorder /reorder - This parameter allows you to reorder either rows or columns.

Method /method - Specify how to reorder the table

  • Reverse - reverse the order rows or columns
  • Replace by Names - Copy a row or column in the input table specified in From to the row or column specified in To. Rows or Columns are specified by names.
  • Replace by Indices - Copy a row or column in the input table specified in From to the row or column specified in To. Rows or Columns are specified by numbers.
  • Swap by Names - Swap a row or column specified in From with the row or column specified in To. Rows or Columns are specified by names. Swaps are cumulative.
  • Swap by Indices - Swap a row or column specified in From with the row or column specified in To. Rows or Columns are specified by numbers. Swaps are cumulative.
  • In Specified Order by Name - Copy the rows or columns in the specified order by name. Any row or column not listed will be appended in input order. You can specify a row or column more than once to get multiple copies of it.
  • In Specified Order by Index - Copy the rows or columns in the specified order by index. Any row or column not listed will be appended in input order. You can specify a row or column more than once to get multiple copies of it.

Before /before - The rows or columns to copy or swap from.

After /after - The rows or columns to copy or swap to.

Order /order - The order of input rows and columns to copy.

Delete Unspecified /delete - Only available when Method is 'In Specified Order by Name' or 'In Specified Order by Index'. It will delete any row/column not listed in the Order parameter.