Notifications
Clear all

[Closed] Popupdialog in the middle of script?

Hi, how can I use a popupdialog in the middle of a script and then wait until the user has pressed ok to run the rest of the script?

Maybe on something simple like this:

$.EditablePoly.SelectEdgeRing () 
$.EditablePoly.popupDialog #ConnectEdges
$.EditablePoly.ShrinkSelection ()

CML

2 Replies

I attach the .ms

 
rollout roll_1 "roll_1" 
(
	 button btn_one "open"
	 on btn_one pressed do
	 (
		   roll_2_dial = newRolloutFloater "test 2" 200 70
		   addrollout roll_2 roll_2_dial
	 )
	[b] fn next =[/b]
	 (
			print "next"
	 )
)
rollout roll_2 "roll_2"
(
	   button btn_two "close"
	   on btn_two pressed do
	   (
			CloseRolloutFloater roll_2_dial
		   [b] roll_1.next()[/b]
	   )
)
roll_1_dial = newRolloutFloater "test 1" 400 300
addrollout roll_1 roll_1_dial

Hey externe, thanks. That will work of if you make your own ui for the popupwindow. But in the example I gave I can’t acces what the buttons are named and stuff like that(I think). Do you know a solution for the example I gave?

CML