3.2.29 MatrixPages


Description

Get the MatrixPages.

Syntax

MatrixPages(PageName)
MatrixPages()

Parameters

  1. PageName
  2. no-argument

Return

MatrixPage

Examples

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')