Get two dimensional data from a specified MatrixObject
VARIANT* GetData(MR1 = 0, MC1 = 0, MR2 = -1, MC2 = -1)
EX1
import PyOrigin pArr2D = [[x for x in range(5)] for x in range(5)] MatrixPage=PyOrigin.MatrixPages('MBook1') MatrixPage.Layers('MSheet1').SetColCount(5) MatrixPage.Layers('MSheet1').SetRowCount(5) MO=MatrixPage.Layers('MSheet1').MatrixObjects(0) MO.SetData(pArr2D, 0, 0) Mdata=MO.GetData() print(Mdata)
SetData