 
           when "Layer"
             for subPageItem in obj.pageItems
-              @process subPageItem
+              @process subPageItem, null, opacity
 
           when "CompoundPathItem"
             for path in obj.pathItems
-              @process path, clip
+              @process path, clip, opacity
 
           when "GroupItem"
             if obj.clipped

              @processedPathCnt += 1

            for subPageItem in obj.pageItems when not subPageItem.clipping
              @process subPageItem, clip

          when "PathItem"
            if @processedPathCnt % 10 == 0


      Array.prototype.push.apply @assSections[layerNum][prefix], ASS_createDrawingFromPoints path.pathPoints

    prefix: (stroke, fill, clip, alpha) ->
      "{\\an7\\pos(0,0)#{stroke}#{fill}#{alpha}#{clip}\\p1}"

    suffix: -> "{\\p0}"

