Get the MatrixPages.
MatrixPages(PageName) MatrixPages()
MatrixPage
Ex1
#create matrixbook named MBook1 with sheet named Msheet1, then run the script import PyOrigin pArr2D = [[3 for x in range(5)] for x in range(5)] MatrixPage=PyOrigin.MatrixPages('MBook1') MatrixPage.Layers('MSheet1').MatrixObjects(0).SetData(pArr2D, 0, 0)
Ex2
import PyOrigin if PyOrigin.MatrixPages().GetCount() > 0: #Add layers to each matrixpage for Matrix in PyOrigin.MatrixPages(): Matrix.AddLayer('MySheet')