Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

CmaterialPointer, Cmaterial, Ccamera, Cobject and Ccluster.

Methods

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

...

Returns whether the object, camera, material, material emitter, material or camera layer, reflectance, coating, or BSDF is empty (null).

LanguageSyntax
C++bool isNull()

...

Code Block
languagecpp
titleC++
Cmaxwell::Cobject object = scene.getObject( "myobject" );
if( object.isNull() )
  printf( "Error: -myobject- not exists" );
else
  printf( "Good news: -myobject- readed successfully" );
language
Code Block
javascripttitlePython
CmaxwellObject scene.getObject( 'myobject' );
if object.isNull():
  print( 'Error: -myobject- not exists' );
else:
  printf( "Good news: -myobject- readed successfully" );

 

...