parameters: (objName, colorScheme)
return_statement: return res
docstring: sets an molecule's color scheme
      Arguments:
        - objName: the object (molecule) to change
        - colorScheme: name of the color scheme to use
          for the object (should be either 'std' or one of the
          color schemes defined in pymol.utils)
docstring_summary: sets an molecule's color scheme
      Arguments:
        - objName: the object (molecule) to change
        - colorScheme: name of the color scheme to use
          for the object (should be either 'std' or one of the
          color schemes defined in pymol.utils)
docstring_tokens: sets an molecule s color scheme Arguments : - objName : the object ( molecule ) to change - colorScheme : name of the color scheme to use for the object ( should be either std or one of the color schemes defined in pymol . utils )
function: def colorObj(objName, colorScheme):
    """ sets an molecule's color scheme
      Arguments:
        - objName: the object (molecule) to change
        - colorScheme: name of the color scheme to use
          for the object (should be either 'std' or one of the
          color schemes defined in pymol.utils)
    """
    if colorScheme:
      if colorScheme == 'std':
        # this is an adaptation of the cbag scheme from util.py, but
        # with a gray carbon.
        cmd.color("magenta", "(" + objName + ")", quiet=1)
        cmd.color("oxygen", "(elem O and " + objName + ")", quiet=1)
        cmd.color("nitrogen", "(elem N and " + objName + ")", quiet=1)
        cmd.color("sulfur", "(elem S and " + objName + ")", quiet=1)
        cmd.color("hydrogen", "(elem H and " + objName + ")", quiet=1)
        cmd.color("gray", "(elem C and " + objName + ")", quiet=1)
      elif hasattr(utils, colorScheme):
        fn = getattr(utils, colorScheme)
        fn(objName, quiet=1)
      res = 1
    else:
      res = 0
    return res
function_tokens: def colorObj ( objName , colorScheme ) : if colorScheme : if colorScheme == 'std' : # this is an adaptation of the cbag scheme from util.py, but # with a gray carbon. cmd . color ( "magenta" , "(" + objName + ")" , quiet = 1 ) cmd . color ( "oxygen" , "(elem O and " + objName + ")" , quiet = 1 ) cmd . color ( "nitrogen" , "(elem N and " + objName + ")" , quiet = 1 ) cmd . color ( "sulfur" , "(elem S and " + objName + ")" , quiet = 1 ) cmd . color ( "hydrogen" , "(elem H and " + objName + ")" , quiet = 1 ) cmd . color ( "gray" , "(elem C and " + objName + ")" , quiet = 1 ) elif hasattr ( utils , colorScheme ) : fn = getattr ( utils , colorScheme ) fn ( objName , quiet = 1 ) res = 1 else : res = 0 return res