def nudgeCurve(self, oncurveMv, offcurve1, offcurve2, oncurveSt, offsetX):
		try:
			distanceX = oncurveMv.x - oncurveSt.x
			distanceX1 = oncurveMv.x - offcurve1.x
			distanceX2 = offcurve2.x - oncurveSt.x
			if distanceX != 0:
				valueX1 = distanceX1/distanceX
				valueX2 = distanceX2/distanceX
			else:
				valueX1 = 0
				valueX2 = 0
			if distanceX1 != 0:
				offcurve1.x += (1-valueX1)*offsetX
			else:
				offcurve1.x += offsetX
			if distanceX2 != 0:
				offcurve2.x += (valueX2)*offsetX
		except Exception, e:
			Glyphs.showMacroWindow()
			print "Make Bubble Layers Error (nudgeCurve): %s" % e
dataset/ETHPy150Open Tosche/BubbleKern/Make Bubble Layers.py/MakeBubbleLayers.nudgeCurve/original