Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maxscript: How to avoid crash on undo of UpdateShape()

Maxscript: How to avoid crash on undo of UpdateShape()

Anonymous
Not applicable
1,226 Views
1 Reply
Message 1 of 2

Maxscript: How to avoid crash on undo of UpdateShape()

Anonymous
Not applicable
--How do i Avoid a Crash when Undo?
local sp = splineShape() addnewSpline sp addKnot sp 1 #corner #line [20,10,0] addKnot sp 1 #corner #line [-20,11,0] addKnot sp 1 #corner #line [-20,-11,0] addKnot sp 1 #corner #line [20,-10,0] close sp 1 updateShape sp
0 Likes
Accepted solutions (1)
1,227 Views
1 Reply
Reply (1)
Message 2 of 2

drew_avis
Autodesk
Autodesk
Accepted solution

You could try turning off undo with something like

undo off (
	updateShape sp
)

 There are some caveats though, have a look at:

http://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=GUID-A731E672-9B9A-4D5B-A8A7-EA584AD12FE5

 

Hope that helps,

Drew

 

 



Drew Avis
Content Experience Designer