ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
I just want to ask how to add (undo) to this script :
(
ns = numSplines $
for j in 1 to ns do
(
k = getKnotSelection $ j
for i in k do setKnotType $ j i #corner
updateshape $
)
)
I add (max undo) but it dosn't work !!?
Why "no undo only"?
I showed you how to add undo for the task that you wanted.
Some spline operations are undoable, but for some the solution is to use:
There is very easy way to add UNDO for some spline operations - only one line of code.
If you want to add an entry in the UNDO stack uncoment the comented lines. :)
(-- theHold.Cancel()-- theHold.Begin()
ns = numSplines $
convertToSplineShape $
for j in 1 to ns do(
k = getKnotSelection $ j
for i in k do setKnotType $ j i #corner
)
updateshape $
-- theHold.Accept "Knots type = #corner")
Comments
Thank You
Thank you "miauu" and "barigazy" for your help , so no ando only (Hold & Fatch .
Youtube, Gumroad
Why "no undo only"? I showed
Why "no undo only"?
I showed you how to add undo for the task that you wanted.
Some spline operations are undoable, but for some the solution is to use:
Tools and Scripts for Autodesk 3dsMax
actually its only work if the
actually its only work if the shape have no modifiers on stack , (if there is a sweep for example apply to shape) no undo is recorded .
Youtube, Gumroad
.
There is very easy way to add UNDO for some spline operations - only one line of code.
If you want to add an entry in the UNDO stack uncoment the comented lines. :)
Tools and Scripts for Autodesk 3dsMax
...
Undo not works in case when you try to translate spline knots. Use "Hold & Fatch"
bga