



Mc.pathAnimation(object,c=motionPathCurve,wut="normal",f=1,ua=axes,fa=axes,fm=1,stu=mc.playbackOptions(q=1,minTime=1),etu=mc. LoftObj = mc.loft(offset1,offset2,u=1,ch=1) Offset2 = mc.offsetCurve(curveObj,ugn=0,d=-offsetDistance) At frame 70 the motion path animation will have full influence. A key is set for the blend ending point for the aircraft. Offset1 = mc.offsetCurve(curveObj,ugn=0,d=offsetDistance) Blend Motion Path1: 1 Select both the Blend Add Double Linear1 and Blend Motion Path1 channels, then right-click on either name, and select Key Selected from the drop down list. Here is the fixed version: import maya.cmds as mcĭef curveOnSurfaceFromCurve(curveObj,offsetDistance=.5): If Maya has just been started up, you get a "curveOnSurfaceFromCurve is not defined" error when running it, since you are referencing the definition before it has been defined. Hey, just thought I'd mention that your current script seems to have a minor issue, at least in Maya 2016.
