Changes between Version 7 and Version 8 of AnimationCommands


Ignore:
Timestamp:
Jun 20, 2011, 10:30:59 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnimationCommands

    v7 v8  
    1212Elaine's "corrected scheme" from ticket:9055.
    1313
    14 "scene" is analogous to [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/savepos.html savepos] + [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/reset.html reset], "animate" (or animation or interpolate or logical equivalent) is completely analogous to [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/fly.html fly], except they all work on scenes instead of positions and frame arguments can be followed by comma and transition name (previously defined with "transition").
     14"scene" is analogous to [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/savepos.html savepos] + [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/reset.html reset], "animate" is completely analogous to [http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/fly.html fly], except they all work on scenes instead of positions and frame arguments can be followed by comma and transition name (previously defined with "transition").
    1515
    1616 - http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/savepos.html
     
    3535 - alternative: expand existing reset command to restore scenes, then only need:
    3636 {{{
    37     scene scene-name
    38     scene list
    39     ~scene (scene-name | all)
     37scene scene-name
     38scene list
     39~scene (scene-name | all)
    4040 }}}
     41
     42==== Scooter's proposal ====
     43
     44Scooter proposed two minor modifications (according to Elaine):
     45
     46 1. change
     47 {{{
     48scene scene-name (save | reset [frames[,trans-name]])
     49 }}}
     50 to only
     51 {{{
     52scene scene-name (save | reset)
     53 }}}
     54 thus disallowing gradual transitions using the "scene" command.   Instead only the "animate" command would show gradual transitions.
     55
     56 2. Have a special scene name that always means the current scene.  Then "animate" could be used with the syntax of Elaine's proposal (see below) to go from the current scene to any other.
     57
     58
     59==== Implementation note ====
     60
     61r33799 provides revisions to 'scene' command:
     62{{{
     63scene <scene-name> save
     64scene <scene-name> reset
     65scene <scene-name> reset <intFrames>
     66scene list
     67~scene <scene-name>
     68~scene all
     69}}}
     70
     71Notes:
     72 - args to (scene | ~scene) are comprised of any non-whitespace characters, unless they are 'action' keywords (list | save | reset | all) or otherwise noted below.  It is possible to save a scene called 'scene' using "{{{scene scene save}}}", or a scene called 'save' using "{{{scene save save}}}", but it is never possible to save a scene named 'list'.
     73 - Unless the first arg to 'scene' is 'list', it must be a <scene-name> (there is no default) and the 'save' or 'reset' action is required (there is no default).
     74 - For reset, it is an error to specify a <scene-name> that was not previously saved.
     75 - The <intFrames> argument to reset is optional, the default is 1 frame; when it is given, it must be an integer (the value provided is cast using {{{int()}}}).
     76 - The reset command effects a transition from the current display state to a saved <scene-name> state.
     77 - When transition commands are defined and implemented, the scene command set might be augmented with a transition name:
     78 {{{
     79scene <scene-name> reset [<intFrames>[,<trans-name>]]
     80 }}}
     81
     82
     83
    4184
    4285=== (2) transition definition ===
     
    5396   ... many many possibilities, e.g.
    5497   {{{
    55    color ( linear [f1,f2] | sigmoid [f1,f2] | abrupt f )
     98color ( linear [f1,f2] | sigmoid [f1,f2] | abrupt f )
    5699   }}}
    57100   where f are % fractions of the transition from the preceding scene (0%) to the next scene (100%). A percentage is easier to type than values in the 0-1 range.
     
    87130 - How does animation integrate with recording, 2dlabels, coordset, other commands with frame arguments (move,turn,rock,roll)? Simply as interleaved commands between "movie record" and "movie stop"? Could coordset or 2dlabels changes occur at the same time as other transitions?
    88131
    89 == Scooter's revision ==
    90 
    91 Scooter proposed two minor modifications (according to Elaine):
    92 
    93 (1) change
    94 {{{
    95 scene scene-name (save | reset [frames[,trans-name]])
    96 }}}
    97 to only
    98 {{{
    99 scene scene-name (save | reset )
    100 }}}
    101 thus disallowing gradual transitions using the "scene" command.   Instead only the "animate" command would show gradual transitions.
    102 
    103 (2) have a special scene name that always means the current scene.  Then "animate" could be used with same syntax as in my original suggestion to go from the current scene to any other.