Short Description

Save the current sequence to the file selected by the user with a File Dialog.

Versions

  • Version 1 • Released on: 2013-03-11 11:50:02
    Download
    Description:

    initial version

    importClass(Packages.plugins.tprovoost.scripteditor.uitools.filedialogs.FileDialog)
    importClass(Packages.icy.file.Saver)
    
    // get the current sequence and raise an exception if none
    seq = getSequence()
    if (seq == null) throw "Please open a sequence first"
    
    // select a file to save it in, raise an exception if user cancels
    f = FileDialog.save()
    if (f == null) throw "User cancelled."
    
    // Save seq into f. Overwrite is true.
    Saver.save(seq, f, true)
    

Leave a Review