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 4 Next »

Private class. Useful to check null materials.

Examples

Cmaxwell::Cmaterial material = scene.createMaterial( "plastic" );
if( material.isNull() )
 printf( "Error: material -plastic- not created" );
else
 printf( "Good news: material -plastic- created successfully" );
material = scene.createMaterial( 'plastic' );
if material.isNull():
  print( 'Error: material -plastic- not created' );
else:
  print( 'Good news: material -plastic- created successfully' );

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels