Stop play procedure from within a script

Hi,

i have two questions: 1. is it possible to stop the “play” procedure which you can initiate within the unity GUI from a script attached to an gameobject? 2. where can i find a command line (windows 7) reference which i will need for generating a batch file?

basically i would like to generate a set of 6000 screenshots which will be used to create a video in virtualdub.

look forward for any help, dalininum

Why not just take the screenshots in Unity? Just write a little editor script.

Have you tried Application.CaptureScreenshot?

If you want more control over the procedure or to use it in a webbuild you can do it manually like in this example of WWWForm.

However if you really want to do it with a batch file here is the command line reference for the Unity editor (google -->“unity command line”–> first result).

To control the editor features (like play, pause,…) take a look at EditorApplication