Notifications
Clear all

[Closed] Indestructible Rollout

Is there anything to prevent this behavior, besides good coding?

This script causes a rollout to be indestructible in all Max versions. It will stack there until you close Max.

I thought that in 3ds Max 2017, due to the error handling of MXS, this would not happen, but it just get worse as Max immediately crashes.

(
	fn test =
	(
		try destroydialog ::RO_TEST catch()
		rollout RO_TEST "" width:200 height:100
		(
			on RO_TEST close do hide()	-- Anything that throw an exception
		)
		createdialog RO_TEST
	)
	
	test()
	test()
)
3 Replies

what is wrong? i don’t get…

2 Replies
(@polytools3d)
Joined: 10 months ago

Posts: 0

Can you close the rollout after running the code?

(@fusionyuan)
Joined: 10 months ago

Posts: 0

No, tested in 2016