.. oe:namespace:: OEShape

.. meta::
   :keywords: OEGetCachedSelfColor

.. oe:function:: OEGetCachedSelfColor

   .. oe:language:: c++ java csharp

      .. oe:api::

         float OEGetCachedSelfColor(const OEChem::OEConfBase& mol,
                                    bool allcolor = false)
         float OEGetCachedSelfColor(const OEChem::OEMolBase& mol,
                                    bool allcolor = false)

   .. oe:language:: python

      .. oe:api:: python

         OEGetCachedSelfColor(mol: OEConfBase, allcolor: bool = False) -> float
         OEGetCachedSelfColor(mol: Union[OEGraphMol,OEMol,OEQMol],
                              allcolor: bool = False) -> float

   Return the value of cached self color on the molecule or conformer. This
   function doesn't work for OEMCMolBase directly, so call it on each
   individual conformer.  Returns 0.0 if there is no cached value. Use
   :oe:func:`OEShape::OEHasCachedSelfColor` to determine if a real value
   is attached.
