Eyeon:Script/Reference/Libraries/eyeon/defragsequence
From VFXPedia
Contents |
Usage
eyeon.defragsequence(string pattern)
- pattern (string, required)
A string representing the pattern of files to be defragged. This should be the path + name of the file, including wildcards where the sequence numbers are.
Returns
This function returns two values : A boolean (true / false) value indicating if the function is successful, and if the first return value is false it will also return a string indicating the cause of the problem.
Remarks
This function will attempt to defragment the numeric filesequence matching the pattern specified in the argument. This process reorganizes the sequence of files on disk, not only placing the sectors that store the data for each file into sequential order on disk, but also placing each file next to the other in numerical order.. This can significantly improve io read times for the entire sequence, and may improve framerate during playback from disk.
To defragment a single file, have a look at the eyeon.defragfile function instead.
Requirements
- eyeonScript 5.21
Examples