Выделяем сплайн. Закускаем макс скрипт.
Вставяем
(on isEnabled return (selection.count == 1 and \(classof selection[1] == SplineShape or \classof selection[1] == Line) \and selection[1].modifiers.count == 0)on execute do(new_z = $.pos.zfor s = 1 to (numSplines $) do(for k = 1 to (numKnots $ s) do(knt = getKnotPoint $ s kin_vec = getInVec $ s kout_vec = getOutVec $ s kknt.z = in_vec.z = out_vec.z = new_zsetInVec $ s k in_vecsetOutVec $ s k out_vecsetKnotPoint $ s k knt)--end k loop)--end s loopupdateshape $)--end execute)--end script
Профит