ImageExport class, available in: Framsticks TheaterThis class has 13 members:
sdleiF
int imgex_compress0 .. 100
default=15
Compression level
int imgex_currframeNext frame#
int imgex_enabled0 .. 1 (false/true)Export enabled
int imgex_format0 .. 2
  • 0 = PPM
  • 1 = JPEG
  • 2 =
  • Image format
    string imgex_lastfileLast filename
    int imgex_maxframes0 .. 1000000
    default=10000
    Maximum framesHow many frames are to be generated?
    string imgex_outdirOutput directoryDirectory name WITHOUT trailing '/' sign
    string imgex_outfilesOutput files patternFrame number replaces %d (eg. 'image%03d.jpg')
    int imgex_skipSkip framesA scene file is generated each (n+1) simulation steps
    (a small value means more frames and smooth animation)
    int imgex_startf0 .. 1000000
    default=0
    Starting frame#Starting number
    snoitcnuF
    function imgex_disable()Disable export
    function imgex_enable()Enable export
    function imgex_now()Export current sceneActually, the image is exported on the next redraw rather than immediately. This means that for example exporting a sequence of scenes in a loop will not work, but arranging scenes in subsequent onShowStep()s and calling imgex_now() from there is fine.
    Global context>>Experiment definition>>Command line interface>>Framsticks Theater