Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Private class. Useful to check null objects, materials, etc.

Friend classes

Cmaxwell

CmaxwellMxi

Cmaxwell::Ccluster

Cmaxwell::Cobject

Cmaxwell::Ccamera

Cmaxwell::Cmaterial

Cmaxwell::CmaterialEmitter

Cmaxwell::CmaterialLayer

Cmaxwell::Creflectance

Cmaxwell::Ccoating

Cmaxwell::Cbsdf

Methods

NameDescription
isNullReturns whether the object, material or camera is empty (null).
getPointerInternal use.

isNull

Returns whether the object, material or camera is empty (null).

LanguageSyntax
C++bool isNull()

Examples

C++
Cmaxwell::Cobject object = scene.getObject( "myobject" );
if( object.isNull() )
  printf( "Error: -myobject- not exists" );
else
  printf( "Good news: -myobject- readed successfully" );
Python
CmaxwellObject scene.getObject( 'myobject' );
if object.isNull():
  print( 'Error: -myobject- not exists' );
else:
  printf( "Good news: -myobject- readed successfully" );

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels