parameters: (self)
docstring: Sets the layer description if given, otherwise the default description
          is set
docstring_summary: Sets the layer description if given, otherwise the default description
          is set
docstring_tokens: Sets the layer description if given otherwise the default description is set
function: def set_description(self):
          """
          Sets the layer description if given, otherwise the default description
          is set
          """
          if "desc" in self.layer.keys():
              self.description = self.layer.attrib["desc"]
          else:
              # Set the default name
              if self.get_type() in settings.SHAPE_LAYER:
                  desc = settings.LAYER_SHAPE_NAME
              elif self.get_type() in set.union(settings.SOLID_LAYER, settings.SHAPE_SOLID_LAYER):
                  desc = settings.LAYER_SOLID_NAME
              elif self.get_type() in settings.IMAGE_LAYER:
                  desc = settings.LAYER_IMAGE_NAME
              elif self.get_type() in set.union(settings.PRE_COMP_LAYER, settings.GROUP_LAYER):
                  desc = settings.LAYER_PRECOMP_NAME
              else:
                  desc = settings.UNKNOWN_LAYER
              desc += str(settings.layer_count.inc())
              self.description = desc
function_tokens: def set_description ( self ) : if "desc" in self . layer . keys ( ) : self . description = self . layer . attrib [ "desc" ] else : # Set the default name if self . get_type ( ) in settings . SHAPE_LAYER : desc = settings . LAYER_SHAPE_NAME elif self . get_type ( ) in set . union ( settings . SOLID_LAYER , settings . SHAPE_SOLID_LAYER ) : desc = settings . LAYER_SOLID_NAME elif self . get_type ( ) in settings . IMAGE_LAYER : desc = settings . LAYER_IMAGE_NAME elif self . get_type ( ) in set . union ( settings . PRE_COMP_LAYER , settings . GROUP_LAYER ) : desc = settings . LAYER_PRECOMP_NAME else : desc = settings . UNKNOWN_LAYER desc += str ( settings . layer_count . inc ( ) ) self . description = desc