parameters: (self, name)
return_statement: return self.addMaterialNode(name)
docstring: (Deprecated) Add a material element to the document.
docstring_summary: (Deprecated) Add a material element to the document.
docstring_tokens: ( Deprecated ) Add a material element to the document .
function: def _addMaterial(self, name):
      """(Deprecated) Add a material element to the document."""
      warnings.warn("This function is deprecated; call Document.addMaterialNode() instead.", DeprecationWarning, stacklevel = 2)
      return self.addMaterialNode(name)
function_tokens: def _addMaterial ( self , name ) : warnings . warn ( "This function is deprecated; call Document.addMaterialNode() instead." , DeprecationWarning , stacklevel = 2 ) return self . addMaterialNode ( name )