OrsViewAnimator¶
Manages the 2D animations
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Dec 26 2016 11:52
- dragonflyVersion:
2.1.0.200 (D)
- UUID:
ffba6e18761d11e7aac6448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsViewAnimator.OrsViewAnimator.OrsViewAnimator(*args, **kwargs)¶
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- interfacemethod saveMovieAsAPNG(view: View, box, fps, filename, outXSize, outYSize, reverse, progress, startFrame, endFrame, onTime=False)¶
Save a view as an animated png (.png)
Changed in version Adding: onTime argument
- Parameters:
view (ORSModel.ors.View) – the view to extract
box (ORSModel.ors.Box) –
fps (int) – frame rate
filename (file saving) – fully qualified file name
outXSize (int) – The size in X of the output
outYSize (int) – The size in Y of the output
reverse (bool) – Will start from the endFrame while in reverse
progress (ORSModel.ors.Progress) – an optional progress object (a Progress)
startFrame (int) – Frame to Start at.
endFrame (int) – Frame to End at.
onTime (bool) – Movie done on time axis if True otherwise on slice
- interfacemethod saveMovieAsGIF(view: View, box, fps, filename, outXSize, outYSize, reverse, progress, startFrame, endFrame, onTime=False)¶
Save a view in the Graphics Interchange Format (.gif)
Changed in version Adding: onTime argument
- Parameters:
view (ORSModel.ors.View) – the view to extract
box (ORSModel.ors.Box) –
fps (int) – frame rate
filename (file saving) – fully qualified file name
outXSize (int) – The size in X of the output
outYSize (int) – The size in Y of the output
reverse (bool) – Will start from the endFrame while in reverse
progress (ORSModel.ors.Progress) – an optional progress object (a Progress)
startFrame (int) – Frame to Start at.
endFrame (int) – Frame to End at.
onTime (bool) – Movie done on time axis if True otherwise on slice
- interfacemethod saveMovieAsVideoFile(view: View, box, fps, filename, outXSize, outYSize, reverse, progress, quality, startFrame, endFrame, onTime=False)¶
Save a view as a video file.
Changed in version Adding: onTime argument
- Parameters:
view (ORSModel.ors.View) – the view to extract
box (ORSModel.ors.Box) –
fps (int) – frame rate
filename (file saving) – fully qualified file name
outXSize (int) – The size in X of the output
outYSize (int) – The size in Y of the output
reverse (bool) – Will start from the endFrame while in reverse
progress (ORSModel.ors.Progress) – an optional progress object (a Progress)
quality (int) – Quality of the movie
startFrame (int) – Frame to Start at.
endFrame (int) – Frame to End at.
onTime (bool) – Movie done on time axis if True otherwise on slice