Notifications
Clear all
[Closed] Dose the script operate on the splineshape can not be UNDO??
Apr 10, 2011 8:51 am
hi gays~
Dose the script operate on the splineshape can not be UNDO??
such as
“subdivideSegment <splineShape> <spline_index> <seg_index> <divisions>”
“setKnotPoint “
“addNewSpline”
“…”
:banghead:
the “Undo on” is not work~ is this it ??? how to undo with the splineshape??~ :curious:
2 Replies
1 Reply
some splineshape methods are not undoable. The work around is to convert shape to shape and apply a method after:
(
converttosplineshape <shape>
setKnotPoint <shape> 1 1 [0,0,0]
updateshape <shape>
)
Apr 10, 2011 8:51 am
I think theres a lot of maxscript spline stuff that doesnt register with undo. Theres a quick workaround though.
Make a copy of the unmodified spline and do all your changes on that one.
Then when youre done, use instanceReplace to replace the old spline with the new modified one and the instanceReplace becomes the undo.
standin = copy obj
-- do stuff to standin
instanceReplace obj standin
delete standin