It is sometimes convenient to use Manipulate to set up global values which are to be used in the rest of the notebook. In such cases one can select and run the notebook up to the cell containing Manipulate, use the dynamic interface, and subsequently select and run the remainder of the notebook.
But it would be great to evaluate the whole notebook with the "Evaluate Notebook" menu item, and have the evaluation pause after the Manipulate, then continue when the user clicks a button indicating that they are done manipulating.
A simple example (each line represents a separate cell):
Manipulate[amazingGraphics[y], {y, 0, 1}, Button["Done", global = y^2]]
(* evaluation pauses here until the button is clicked *)
doSomeStuff[global]
doSomeMoreStuff[]
etc[]
How can this be achieved?


Manipulateis finished? – Yves Klett Sep 08 '14 at 11:21Manipulate, but it might be possible. My idea is to rig some sort of trigger, conditionally evaluated within the first argument expression of theManipulate, that deletes the output cell. I'm a little unclear about the "next cell should be evaluated afterManipulatehas finished" bit. Not obvious to me which cell qualifies as next :D Joking aside, I say to the OP: you need to tell us much more about what you are trying to accomplish before we can help you. – m_goldberg Sep 08 '14 at 15:49ContinuousAction,SynchronousUpdating, and/orSynchronousInitializationoptions. – Brett Champion Sep 08 '14 at 21:05Buttonto store those states in a symbol and execute some further code. – bobthechemist Sep 08 '14 at 22:21