//MPMorph-rexx/GETATTR


GETATTR :


   NAME   
  GETATTR -- Gets the attributes of a variable etc.

   SYNOPSIS
  GETATTR( VAR/K,STEM/K,NAME/A ) => VALUE

   FUNCTION
  Returns the current value of a specified field.

   INPUTS
  VAR     - Variable to return result rather than RESULT.
  STEM    - Stem variable for result.
  NAME    - Name of variable to get attributes of:
              SAVED      - 1 if project is saved, otherwise 0;
              OPENPOINTS - 1 if image windows are open, otherwise 0;
              FILENAME   - the current project name;
              FILE1      - the first workbench image file;
              FILE2      - the second workbench image file;
              FILE241    - the first 24 bit image file;
              FILE242    - the second 24 bit image file;
              OUTPUT     - the output file name;
              WIDTH      - the output image width;
              HEIGHT     - the output image height;
              SINGLE     - the type of morph
                           0 - Morph, 1 - Warp
                           2 - AnimMorph, 3 - AnimWarp;
              FRAMES     - the number of frames;
              START      - the start frame;
              PUBSCREEN  - Name of public screen MPMorph is open on;
              HOOK       - Address of progress hook;
              LASTUPDATE - Time (seconds) of last update (V4.4)

   RESULT
  If STEM is provided then result is returned in stem.value, otherwise
  if VAR is provided then result is in var, otherwise result is in
  RESULT;

  Returns error when required.

   EXAMPLE
  options results;getattr saved;say result -> 0

   NOTES
  HOOK is a "struct Hook *" and should be called with parameters as
  for MPImage.library ProgressHook. See EdgePoints for an example.

   BUGS

   SEE ALSO
  SETATTR().