def setLoopLayerScale(loopLayer, xyPlaneScale, zAxisScale):
 for loop in loopLayer.loops:
  for pointIndex in xrange(len(loop)):
   loop[pointIndex] *= xyPlaneScale
 loopLayer.z *= zAxisScale

def setLoopLayerScale ( loopLayer , xyPlaneScale , zAxisScale ) : for loop in loopLayer . loops : for pointIndex in xrange ( len ( loop ) ) : loop [ pointIndex ] *= xyPlaneScale loopLayer . z *= zAxisScale
set the slice element scale .