Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

Save File

by tprovoost / Thomas Provoost

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

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: 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)

This script has no documentation. A Problem ? ask the community.



Icy script publication Id : A3C7K3