Eyeon:Script/Reference/Applications/Fuse/Classes/ScriptOperator/ProgressScale

From VFXPedia

< Eyeon:Script | Reference | Applications | Fuse | Classes | ScriptOperator
Revision as of 07:00, 4 September 2007 by Peter (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents


Summary

The ProgressScale counter is used to assist in updating the progress bar for a tool in situations where the processing for the tool involves several passes, or stages. In some cases the different stages may not occur in the same order, or may end up being skipped. The ProgressScale member can be used to indicate the total number of processing passes being done by the tool.

The ProgessCount member can then be updated after each pass has completed. Within each pass it is then only necessary to set the SetProgress function between 0.0 and 1.0.

For example if the tool does 2 passes over the image, set ProgressScale = 2. Then for the first pass set ProgressCount = 0. Any SetProgress() calls with values between 0.0 and 1.0, will be translated to actual values of 0.0 to 0.5. Then after the first pass is complete set ProgressCount = 1. In the second pass SetProgress() calls with values between 0.0 and 1.0 will be translated to 0.5 to 1.0.

Example

No example at this time.


Tips for ProgressScale (edit)

EyeonTips:Script/Reference/Applications/Fuse/Classes/ScriptOperator/ProgressScale