function getPaddingFromLayer(layer) {
  if (!canLayerHavePadding(layer)) return

  var paddingString = layerPaddingString(layer)
  return paddingFromString(paddingString)
}
Get padding from a layer's name
Returned as a Padding object