Python Script Engine  8.3
GL Studio Editor Python Script API
MaterialArray Class Reference

Public Member Functions

 MaterialArray ()
 
None Insert (disti::Material &mat)
 
int GetCount ()
 

Detailed Description

Common editor interface MaterialArray.

If the MaterialArray instance is empty, it will return 'False' in comparison checks.

# Python:
import MaterialArray
materialArray = MaterialArray.MaterialArray()
if materialArray: # Will be False
pass
materialArray.Insert( someMaterial )
if materialArray: # Will be True
pass
MaterialArray()
default ctor

Constructor & Destructor Documentation

◆ MaterialArray()

MaterialArray::MaterialArray ( )

default ctor

Member Function Documentation

◆ GetCount()

int MaterialArray::GetCount ( )

get the number of elements in the array

Returns
the number of elements in the array

◆ Insert()

None MaterialArray::Insert ( disti::Material &  mat)

insert the given material at the end of the array

Parameters
matmaterial to insert

The documentation for this class was generated from the following file: