Logo Search packages:      
Sourcecode: blender version File versions

def Material::Material::getMode (  ) 

Get this Material's mode flags.
@rtype: int
@return: B{OR'ed value}. Use the Modes dictionary to check which flags
are 'on'.

Example::
  import Blender
  from Blender import Material
  flags = mymat.getMode()
  if flags & Material.Modes['HALO']:
    print "This material is rendered as a halo"
  else:
    print "Not a halo"

Definition at line 165 of file Material.py.

00165                :
    """
    Get this Material's mode flags.
    @rtype: int
    @return: B{OR'ed value}. Use the Modes dictionary to check which flags
        are 'on'.

        Example::
          import Blender
          from Blender import Material
          flags = mymat.getMode()
          if flags & Material.Modes['HALO']:
            print "This material is rendered as a halo"
          else:
            print "Not a halo"
    """

  def setMode(m = None, m2 = None, m3 = None, and_so_on = None,


Generated by  Doxygen 1.6.0   Back to index