Return the MatrixObjects collection.
Get MatrixObjects in the MatrixSheet
MatrixObjects MatrixObjects(Index) MatrixObjects(MatName)
the MatrixObjects
EX1
import PyOrigin msheet = PyOrigin.ActiveLayer() msheet.SetNumMats(2) mats = msheet.MatrixObjects
EX2
#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)