Alias|Wavefront

OpenAlias Version 8.0 Plug-in Documentation


This README file describes each plugin example supplied with Alias
version 8.0. These included plugins are divided into two sections, plugins
whose major purpose is to provide example code for OpenAlias, and plugins
that provide useful add-on features to the Alias product. User Notes
and Programmer Notes are provided for each plugin.


Section 1: Plugin-quick start
=============================

The quickest way to get started with plug-ins is to copy the .AliasPluginsList
in $ALIAS_LOCATION to $HOME/.Alias/AliasPluginsList. 
This will cause several of the examples to be loaded automatically
when Alias is started.

Section 2: Useful Plugins
=========================


blanim.plugin
------------------

  Installs Into: 
        Palette -> Object Edit -> blanim

  User Notes:
    The blanim plugin allows the user to perform weighted blending of
    transformations for a target object with n-number of source objects.
    It achieves this by building expression channels based on the
    translation, rotation or scale of the source objects.  Each parameter is
    weighted against a slider's x translate value.   Sliders are automatically
    newed for each source object.

    A wire file called "Walk2Run" is provided which includes two skeletons,
    one keyed for walking, the second for running.  The middle skeleton has
    no expressions or animations.  Play back the animations to watch the
    movements.
    
    Workflow:

    After installing, the plugin can be launched from the
    object edit menu.  The user will be prompted to select a target
    object.  After choosing, the user can pick n-number of source objects
    and press go to complete the expression building.  N-number of source
    object sliders are newed and can be relocated after being created
    at the universe's origin.
    
    The user can bring up a dialog to select which parameters, translation,
    rotation, or scale will be used in generating the expression.  The
    length of the slider can also be adjusted.  By default rotations
    are selected.
    
    BEWARE: ALL SELECTED OBJECTS, THE TARGET AND SOURCES, MUST HAVE SIMILIAR
    HIERARCHIES.
    
    Uses:
    
    This is a way of blending between two or more animations for a
    skeleton or some other hierarchy.  It comes in part from the need to
    blend a character's motion captured data with corrective
    animation to move the character's arm 3 inches to the left (and as
    such is an alternative to the 'double dag' technique).  It is also
    useful for blending between two sequences that a given character is
    animated to do, e.g. go from a walk cycle to a run cycle.

     This plug-in was produced by VisionMAKER Inc. under contract
     to Alias|Wavefront.

     VisionMAKER Inc.
     3105 North 17th Street
     Arlington, VA 22201
     dhunt@ix.netcom.com
     aktaylor@ix.netcom.com
     (703)-351-7948
     The plugin Specialists for Alias.

snapj.plugin
------------------

  Installs Into: 
        Palette -> Object Edit -> snapj

  User Notes:
     This plugin allows you to easily add a new joint
     whose pivot point is snapped to the location of the
     nearest pivot in your existing world.  When this plugin
     is activated, you are prompted to add a joint:
     
       Add Joint (snap to pivot)...
     
     Now, when you click in any window, a new joint will be
     added to the system.  As you move the mouse around, the
     joint will continue to snap to the nearest pivot point,
     until the mouse button is released.  If there are no
     objects in your system, the joint will move around in
     freeform (no snapping).  Also, if the control key is
     held down before dropping the joint, the joint will move
     around in freeform (snapping is disabled).
     
     The joint will snap to the pivot of any leaf nodes, or any
     node that is a joint.  It will not snap to lights and cameras.
     
     Also, when the joint is snapped to a pivot, the pivot
     is automatically added as a point constraint to the new
     joint.
     
     By bringing up the option box, the default behavior of this
     plugin can be modified.  Here, you can turn off the automatic
     point constraint creation, and also modify the behavior
     of the point constraint.

     This plug-in was produced by VisionMAKER Inc. under contract
     to Alias|Wavefront.

     VisionMAKER Inc.
     3105 North 17th Street
     Arlington, VA 22201
     dhunt@ix.netcom.com
     aktaylor@ix.netcom.com
     (703)-351-7948
     The plugin Specialists for Alias.



jointlib.plugin
------------------

  Installs Into: 
        Palette -> Object Edit -> jointlib

  User Notes:
     This plugin allows you to set limit information
     for existing joints by picking items from a joint
     library.  For example, you can set an existing
     joint to have limits like an ELBOW by simply
     picking elbow from the joint library.  Compare
     this to hand typing in the values for up to 24
     limit fields, and you can see that the joint library
     plugin can save you considerable time.
     
     When you click on the joint library PLUGIN
     button, a panel pops up that contains the following
     information:
     
       - the currently selected object
         - joint info for that object if it exists
       - a list of predefined joint types
     
     While the panel is up, you can enter pick->joint mode,
     and then select an existing joint.  The limit information
     for that joint will now be displayed in the panel, and
     if this joint is from the joint library, it will tell
     you which predefined joint type it is.  You can change
     the joint type by double clicking on a joint from the
     list in the panel.
     
     The list of predefined joint types is contained in the jointlist
     file.  By default, the plugin looks for the jointlist file in the
     following directories:
       - $HOME/jointlist.
       - /tmp/jointlist
       - pluginlocation/jointlist
     To add new joints to the joint library, edit the jointlist
     file, and follow the instructions at the top of the file.
     NOTE: the format of the jointlist file is very strict.
     
     This plug-in was produced by VisionMAKER Inc. under contract
     to Alias|Wavefront.

     VisionMAKER Inc.
     3105 North 17th Street
     Arlington, VA 22201
     dhunt@ix.netcom.com
     aktaylor@ix.netcom.com
     (703)-351-7948
     The plugin Specialists for Alias.

     
bake.plugin (formerly useExpr.plugin)
-----------------

  Source Files:
        bake.c++
        bake.i.scm
        bake.o.scm
        WalkTree.c++

  Includes:
        AlUniverse.h
        AlPickList.h
        AlChannel.h
        AlParamAction.h
        AlLinkItem.h
        AlList.h
        AlIterator.h
        AlAnimatable.h
        AlPlayFrame.h
		AlConstraint.h
		AlIKHandle.h
		AlIKHandleNode.h
        WalkTree.h

  Installs Into:
        Menu -> Animation -> Bake  ("ap_animwinds")

  User Notes:
	This plugin allows the user to create keyframed animations for objects
	that are animated through expressions or constraints.  The resulting
	keyframe curve is 'baked' into the channel of the object, and the expression
	or constraint is deleted.  When an expression is baked, the keyframed
	animation replaces the expression.  When a point constraint is baked, the
	translation channels of the constrained DagNode are animated.  When an
	orientation or aim constraint is baked, the orientation channels are animated.

    The option box allows the user to define which objects should be
	examined ('All' or 'Active'), whether to bake constraints and/or expressions,
	the hierarchy of the sampling and the time range and sampling rate.
	
	Note: OpenAlias does not currently support prompt line entry from
	plugins, so the 'Prompt' option does nothing.

  Programmer Notes:
    This plugin illustrates several useful capabilities: how to effectively
	use an AlPlayFrame object; how to use WalkTree to traverse an object
	hierarchicaly; and how to hold onto a list of AlParamActions which
	are latter applied to an object.

	This plugin should also serve as encouragement for plugin developers
	to create simple yet useful plugins to provide features that are not
	implemented within PowerAnimator.  There are several reasons for the
	'Bake' functionality NOT being provided within PowerAnimator (reasons 
	primarily dealing with user expectations of such functionality), but 
	through a plugin we can provide a minimal set of capabilities which 
	will meet the majority of requirements for such a function.
        
doChannels.plugin
-----------------

  Source Files:
        doChannels.c++
        doChannels.i.scm
        doChannels.o.scm

  Includes:
        AlChannel.h
        AlDagNode.h
        AlAnimatable.h
        AlIterator.h
        AlLinkItem.h
        AlList.h
        AlParamAction.h
        AlPickList.h
        AlPlayFrame.h

  Installs Into:
        Menu -> Animation -> Capture Performance  ("ap_animwinds")

  User Notes:
    This plugin allows the user to use the mouse to control two animatable
    parameters of a selected object.  The parameters are the Translate, Rotate,
    and Scale in the X/Y/Z directions.  This setup is configurable from the
    option box.
    
    When the plugin is run, recording does not start until the mouse button
    is clicked once.  This means that the user can practice moving the object
    before actually recording the motions.  Once the mouse button is clicked,
    all movement is recorded as keyframes.  Click again to stop recording.

  Programmer Notes:
    This plugin combines two useful functionalities: mouse input and animation
    channels.  This work is performed in the TcapturePerformance::doPerformance
    function.  The AlPlayFrame class is used along with the device.h code to
    determine transformations, which are implemented through the
    setNodeTransform() function.  The new actions are recorded with the
    AlParamAction class, with the ::addKeyframe function call creating a new
    keyframe for every single frame.  The final channels then have to be
    created, and appropriate tangents applied.

        
useMidi5.3.plugin or useMidi6.2.plugin
-----------------

  Source Files:
        useMidi.c++ or useMidi6.2.c++
        useMidi.i.scm
        useMidi.o.scm
        TdeviceHanger.c++
		AlHelpMe.c++
		TcapturePerformance.c++
  Includes:
		AlUniverse.h
		AlPickList.h
		AlChannel.h
		AlParamAction.h
		AlViewFrame.h
		AlLinkItem.h
		AlList.h
		AlIterator.h
		AlAnimatable.h
		AlDagNode.h
		AlPlayFrame.h
		AlPlayBack.h
		AlXevents.h
		TdeviceHanger.h
		TcapturePerformance.h

  Installs Into:
        Menu -> Animation -> Shuttle Cmds - Midi  ("ap_animwinds")

  User Notes:
    This plugin allows the user to capture performance information from
	an external Midi device and record the animation for specified
	objects.  The connections between Midi channels and the object's
	animation channels must be established using the setDevice plugin.

    There is a sample wire file (robot.final.midi) included on the 3DCD
    which has been setup to handle input from a Midi device.

  Programmer Notes:
    This plugin illustrates several interesting capabilities: the ability
	to create an interrupt driven plugin; how to intercept and handle
	Xevents from Alias; how to use the deviceHanger information to map
	from device specific channels to animation channels; how to manage
	a playback sequence; and how to apply animation to specific objects.

setDevice.plugin
----------------

  Installs into:
        Menu -> Animation        

  User Notes:
    The setDevice plugin works in conjunction with the useMidi plugin.
    It is used to assign a MIDI channel and animation transformation (e.g.,
    X,Y,Z translate, rotate, scale) for a given selected object/model.

    To use, first select the object you want to assign. Launch the setDevice
    plugin with the Option box. Select from the "parameter mapping" pop-up
    (X, Y, Z translate, rotate or scale). Next select the desired "channel
    mapping" value. This will correspond to the physical MIDI slider number.
    Finally, if necessary, adjust the offset and scale factors. Note that the
    range of MIDI values will range from 0 - 127.

    This configuration data is stored with the model as "blind data" and
    will be used by the useMidi plugin.


sunShine.plugin
---------------

  Source Files:
        sunShine.c++
        sunShine.i.scm
        sunShine.o.scm
        TSun.c++
        TSun.h

  Includes:
        AlPickList.h
        AlChannel.h
        AlParamAction.h
        AlViewFrame.h
        AlLinkItem.h
        AlList.h
        AlIterator.h
        AlAnimatable.h
        AlDirectionLight.h
        AlLightNode.h
        AlGroupNode.h

  Installs Into:
        Menu -> Animation -> Sun Shine  ("ap_animwinds")

  User Notes:
    This plugin will use information given to in to determine the location of
    the sun and generate a directional light to simulate it.  By activating the
    option box, the settings can be changed in two ways.  If the Time/Location
    option is chosen, the sun's position will be calculated based on the month,
    day, hour, minute, and the latitude specified.  In the Altitude/Azimuth
    selection, the altitude of the sun (in degrees from the ground), and the
    azimuth (the altitude of the sun at its maximum point during the day).

  Programmer Notes:
    One of the nicer features of this plugin is the ability two use two
    different methods for specifying the sun's position.  This is accomplished
    in the sunShine.o.scm file.  Note that the widgets are preceded by a
    (list 'enabled ()) line.  This is the method whereby this is accomplished.
    Only those widgets whose 'enabled expressions evaluate to true are actually
    shown.


surf.plugin
-----------

  Source Files:
        surf.c++
        surf.scm
        surf_init.scm
        AlVector.c++
        AlVector.h

  Includes:
        AlIterator.h
        AlPolygon.h
        AlPolyset.h
        AlPolysetNode.h
        AlPolysetVertex.h
        AlShader.h
        AlTexture.h
        AlTM.h
        
  Installs Into:
        Palette -> Object Edit -> Fractal Surface  ("mp_objtools")

  User Notes:
    This plugin generates a fractal-based mountain.  Numerous parameters can
    be set to modify the final result.  In the order presented in the option
    box, they are:
        Subdivisions:    The number of times each edge of the mesh will be cut
                         in half.  Thus, setting subdivisions to 2 will result
                         in a 4x4 grid, while setting it to 6 results in a 32
                         by 32 surface.  In other words, this is the complexity
                         and resolution of the fractal surface.
        Seed:            The pseudo-random number used to generate the surface.
                         A given seed will always result in the same fractal
                         surface, if the other parameters are kept constant.
                         Changing the seed will give varying surfaces.  It is
                         best to experiment with a few values to find the best
                         surface for your application.
        Taper %:         This parameter defines the smoothness of the resulting
                         surface.  Low values yield jagged, erratic surfaces,
                         while high values result in smooth, gently sloping
                         landscapes.
        Size X/Y:        Sets the length of the sides of the surface.  One
                         corner of the generated surface is always at (0,0),
                         while the opposite corner is defined by these two
                         parameters.
        Variance X/Y/Z:    The maximum amount of change that a particular vertex
                         may go through.  It is recommended that the Z variance
                         be significantly larger than the X and Y variances.
        Level 1:         The Z-value below which the surface is shaded a rocky
                         brown colour (sand).
        Level 2:         The Z-value below which the surface is shaded a bright
                         green colour (grass).
        Level 3:         The Z-value below which the surface is shaded grey 
                         (rock).
                         Above this value, the surface is snow-coloured.
        Level Jitter:    Sets how precisely the above colour settings are
                         adhered to.  This gives a more "natural" look to the
                         surface.

  Programmer Notes:
    The surf.plugin makes extensive use of the AlVector class, which is a
    generic vector class useful in many applications.

    The actual creation of the surface mesh is in the generateSurface()
    function.  Here, vectors are converted into vertices for a polyset.  The
    process for doing this is straightforward and readable from the code.

    The interface with the AlTexture class is used in the make*() functions
    (makeSnow(), makeRock(), makeSand(), makeGrass(), makeShader() and
    createShaders()).  See the source code for the specific examples of using
    AlTexture.


tree.plugin
-----------

  Source Files:
        tree.c++
        tree.scm
        tree_init.scm
        AlVector.h
        AlVector.c++

  Includes:
        AlIterator.h
        AlPolygon.h
        AlPolyset.h
        AlPolysetNode.h
        AlPolysetVertex.h
        AlTM.h

  Installs Into:
        Palette -> Object Edit -> Fractal Tree  ("mp_objtools")

  User Notes:
    The fractal tree plugin generates a pseudo-random realistic-looking tree
    using a polygon mesh.  The tree is generated centred at the origin, and
    a variety of parameters affect its final shape.  The option box controls
    are:
        Seed:            The random number seed used in generating pseudo-
                         random numbers.  Different values will result in
                         different trees.
        Max Branch Limit:    The number of times a tree limb can branch.
        Bend:            The maximum amount of curve along a branch.
        Fork Angle:      The angle with which a branch will split.
        Branch Frequency:    The probability that a branch will split at a
                         given point.
        Gravity:         A negative value will tend to make the tree point
                         upwards, while a positive value will "pull" the tree
                         downwards.
        Grow Length:     The final length of branches.
        Trunk Taper:     The percentage of the size of the bottom end of the
                         branch segment that the other end of the segment is
                         (how quickly the branches go from trunk to twig).
        Minimum Branch Size:    If a branch gets smaller than this, it ends.
        Twist Angle:     Maximum twisting that a branch segment will go
                         through.
        Type of Leaves:  Not implemented.

    As always, the best way to determine the effects of these setting is to    
    try them out yourself.

    NOTE: Be careful setting high recursion depths. Too great a depth will
    result in Alias quitting or core dumping from lack of memory.

  Programmer Notes:
    From a plugin programming perspective, there is nothing complicated about
    this plugin.  However, it provides a solid example of polygon construction
    through recursion.  The extendtrunk() and branch() functions do the actual
    construction in this case.


tree2.plugin
------------

  Source Files:
        tree2.c++
        tree.scm
        tree_init.scm
        AlVector.h
        AlVector.c++

  Includes:
        AlCurve.h
        AlCurveNode.h
        AlIterator.h
        AlPolygon.h
        AlPolyset.h
        AlPolysetNode.h
        AlPolysetVertex.h
        AlSurface.h
        AlSurfaceNode.h
        AlTM.h

  Installs Into:
        Palette -> Object Edit -> Fractal Tree  ("mp_objtools")

  User Notes:
    The fractal tree plugin generates a pseudo-random realistic-looking tree
    using cylindrical surfaces.  The tree is generated at the origin, and
    a variety of parameters affect its final shape.  The option box controls
    are:
        Seed:           The random number seed used in generating pseudo-
                        random numbers.  Different values will result in
                        different trees.
        Max Branch Limit:    The number of times a tree limb can branch.
        Bend:           The maximum amount of curve along a branch.
        Fork Angle:     The angle with which a branch will split.
        Branch Frequency:    The probability that a branch will split at a
                        given point.
        Gravity:        A negative value will tend to make the tree point
                        upwards, while a positive value will "pull" the tree
                        downwards.
        Grow Length:    The final length of branches.
        Trunk Taper:    The percentage of the size of the bottom end of the
                        branch segment that the other end of the segment is
                        (how quickly the branches go from trunk to twig).
        Minimum Branch Size:    If a branch gets smaller than this, it ends.
        Twist Angle:    Maximum twisting that a branch segment will go
                        through.
        Type of Leaves: Not implemented.

    As always, the best way to determine the effects of these setting is to    
    try them out yourself.  Note also that the parameters have the same effect
    as the do in tree.plugin.

    NOTE: Be careful setting high recursion depths. Too great a depth will
    result in Alias quitting or core dumping from lack of memory.

  Programmer Notes:
    The only difference between this plugin and tree.plugin is the method for
    the physical construction of the tree.  While tree.plugin uses polygons,
    tree2.plugin uses cylinders.  A look at makeCylinder() shows that the
    cylinders are made by rotating a line.

    Works on either selecting the vertices in a polyset,
    or just select the polyset and all vertices will be
    beveled.


xpaint.plugin
-------------

  Source Files:
        xpaint.c++

  Includes:
    AlUniverse.h
    AlLiveData.h
    AlFunction.h
    AlFunctionHandle.h

  Installs Into:
        Windows -> XPaint

  User Notes:

    The xpaint plugin launches the Xpaint palette based paint package
    from a menu item. It allows the user to specify an Alias Quantizer
    format palette file and an image, both of which will be loaded into
    Xpaint.


resetTransforms.plugin
----------------------

  Source Files:
        resetTransforms.c++
        resetTransforms.i.scm
        resetTransforms.o.scm
        WalkTree.h

  Includes:
        AlChannel.h
        AlDagNode.h
        AlIterator.h
        AlLinkItem.h
        AlList.h
        AlParamAction.h
        AlPickList.h

  Installs Into:
        Palette -> Object Edit -> Reset Transforms  ("mp_objtools")

  User Notes:
    This plugin provides a quick methodology to reset an object's
    transformations.  Translations and Rotations are set to 0 and Scale
    transforms are set to 1.0.  From the option box, it is possible to turn
    on or off any or all of the three basic transformation types (Translate,
    Rotate, Scale).  Also, resetTransforms can be told to only ascend or
    descend the Dag node hierarchy by way of the option box.

  Programmer Notes:
    Useful coding examples found in this plugin include the use of the WalkTree
    object, useful for ascending and descending the dagnode hierarchy.  The
    TresetPickIterator::func() shows the implementation of this concept.

    Related to this is the examples of the AlIterator functionality, which
    allows a function to be applied to a list of AlObjects (such as the
    AlPickList).  The TresetHierIterator is a class derived from AlIterator,
    and as such has this functionality.  The AlIterator method is the most
    efficient manner of traversing an object list.




Section 3: Coding Example Plugins
=================================



applyFunction.plugin
--------------------

  Source Files: 
        applyFunction.c++
        applyFunction.i.scm
        applyFunction.o.scm

  Includes:
        AlAnimatable.h
        AlChannel.h
        AlDagNode.h
        AlIterator.h
        AlLinkItem.h
        AlList.h
        AlParamAction.h
        AlPickList.h
        AlViewFrame.h

  Installs Into:
        Menu -> Animation -> Apply Function  ("ap_animwinds")

  User Notes:
    This plugin provides a quick way to apply a noise or sine-wave animation
    to one of the nine basic dag-node parameters (X/Y/Z Translation/Rotation/
    Scale).  It is applied over a specified range of frames, and either to
    the active dagnodes or to a newly generated node.

  Programmer Notes:
    The use of channels in this plugin shows how simple it is for a plugin
    to generate animation.  Any function can be designed and used in this
    manner.  The method TapplyFunction::createFunction() is the workhorse of
    this plugin, and is where the animation is developed.


clock.plugin
------------

  Source Files:
        clock.c++

  Includes:
        AlDagNode.h
        AlMessage.h
        AlPickList.h

  Installs Into:
        Menu -> File -> Clock  ("al_file")

  User Notes:
    This plugin operates a clock which updates its hands in real-time.  It
    reads the current system time and sets the Z-rotation values to match those
    that would be found on a real clock.  Remember that the objects will be
    rotating about their pivot point.  Before executing this plugin, you must
    name three objects in your Universe "hour", "minute", and "second".  These
    will be used as the three clock hands. The file CLOCK is available from
    the examples directory to use with this plugin.

    NOTE: Do not remove this plug-in. Doing so will result in a core dump.

  Programmer Notes:
    The real-time movement of hands is accomplished through idle messages.  In
    this case, whenever Alias is idle (ie: not otherwise busy), it will
    execute the function update_clock().  This sort of background process can
    become very useful in complicated environments, when you wish to make sure
    certain rules are always followed, or to watch for conflicts, or for many
    other tasks.  Note the creation of a new message type in the plugin_init()
    function.  This is necessary for any such background operations.


cont.plugin
-----------

  Source files:
        cont.c++

  Includes:
        AlWindow.h

  Installs Into:
        Palette -> Object Edit -> Cont Test  ("mp_objtools")

  User Notes:
    Not applicable (see Programmer Notes).

  Programmer Notes:
    This plugin is meant as an example as to how to approach developing
    continuous plugins (ie: plugins with user interaction).  The basic concept
    is to develop a collection of functions that are called on different
    events (mouse up, mouse down, mouse movement, plugin start-up, etc.).  By
    coordinating tasks between these functions, complex plugin behaviours
    can be created.

    Note that all message reports are outputted to the stdout.


control.plugin
--------------

  Source Files:
        control.c++
        control.scm
        control_init.scm

  Includes:
        AlDagNode.h
        AlPickList.h
        AlMessage.h

  Installs Into:
        Palette -> Object Edit -> Control  ("mp_objtools")

  User Notes:
    This simple plugin allows you to modify the X,Y,Z translation parameters
    of an object.  When selected, an option box appears with three sliders
    for the three directions.  The object's position in the work windows is
    updated as the sliders are moved.  This allows for a more visually
    intuitive method for placing objects.

	NOTE: Do not 'automatic' load this plug-in. Doing so corrupts memory
    causing Alias to develop a segmentaion fault.

  Programmer Notes:
    The major feature of this plugin is the ability to modify Alias from
    within an option box.  This is accomplished through a function called
    during idle time which reads the values from the option box and redraws
    the Alias Universe with them.  This, in turn, is accomplished through
    message passing.

    The code itself is the best explanation as to how to accomplish this.
    This method is extendible to any aspect of Alias, leading to any number
    of uses.


deldag.plugin
-------------

  Source Files:
        deldag.c++

  Includes:
        AlDagNode.h
        AlPickList.h
        AlPickable.h

  Installs Into:
        Palette -> Object Edit -> Delete Dagnode ("mp_objtools")

  User Notes:
    This allows a "point-and-click" method for deleting objects.  After
    selecting this tool, simply click on any object in any window view and
    it will be deleted.     Objects can also be deleted by typing in their
    name.

  Programmer Notes:
    This code demonstrates two important tasks: modifying the DAG (through
    deletion), and picking items during a function.  Sample code is given for
    doing selections both by mouse-click and by name.  Deletion from the DAG
    graph and the use of the picklist from inside a continuous function is
    shown.
    
distance.plugin
---------------
  Source Files:
        distance.c++
        distance_init.c++

  Includes:
        AlPickList.h
        AlMeasure.h
        AlCurve.h
        AlSurface.h
        AlSurfaceNode.h

  Installs Into:
        Menu -> Utilities -> Closest Distance  ("al_goto")

  User Notes:
    This plugin's sole purpose is to determine the minimum distance between
    two objects.  It is limited to points, surfaces, and curves.  To use it,
    first select either one or two surfaces or curves.  If two objects are
    selected, it will determine the minimum distance between them.  If only
    one object is chosen, the minimum distance from that object to the origin
    will be calculated.

    The response from the plugin is shown on the Prompt line.  It consists
    of all relevant information about the points of minimum distance.  The
    first value is always the calculated distance.  After this is varying
    information depending on the type of objects selected.  For both curves
    and surfaces, the (x,y,z) coordinates of the closest point are given.
    On any curve, the (t) coordinate is also given, and a point on a surface
    is also returned in terms of its (u,v) coordinate space.

    Note that selected objects after the first two are ignored.

  Programmer Notes:
    The main purpose of this plugin is to demonstrate the AlMinDist()
    function defined in AlMeasure.h.  The first section of code (the five
    boolean functions) determine which of the five following cases exists
    in the picklist: one curve; one surface; two curves; two surfaces; one
    of each.  They return pointers to these objects to the main section of
    the plugin.

    Knowing the type of objects that have been chosen, the desired MinDist
    function is called.  All of the important information regarding the
    points identified as being the closest are returned by the MinDist
    function, along with the minimum distance.  A simple AlPrintf statement
    is used to output the data.

    Note that the use of the origin as the point to determine closeness to
    is coded in the plugin and is not a restriction of the AlMinDist function.

    Lastly, it is important to remember that the minimum distance measurement
    is performed in the world-space.  If the object being measured is under-
    going non-affine transformations, the u/v/t parameter values that are
    returned may not be accurate.  In the vast majority of cases, however,
    this minor point may be ignored.  Also, the points returned by the
    function are in the world-space as well.


ground.plugin
-------------

  Source Files:
        ground.c++
        ground.scm
        ground_init.scm

  Includes:
        AlPolyset.h
        AlPolysetNode.h
        AlPolygon.h
        AlPolysetVertex.h
        AlPickList.h
        AlWindow.h

  Installs Into:
        Palette -> Object Edit -> Planar Mesh ("mp_objtools")

  User Notes:
    This plugin is a quick way to generate flat meshes.  The option box allows
    you to set the mesh density (the number of node points per dimension),
    whether or not to keep the perturbation information (the data on the
    locations of individual vertices), and whether or not to use the mesh
    geometry inline (to draw the full mesh while you are dragging it to its
    final size).  The only one of these three options that would be important
    to the user is the density setting.  Once the mesh has been generated, its
    individual nodes may be transformed individually.

  Programmer Notes:
    One of the key features of this plugin is the use of "helper" geometry
    during the construction phase.  In order to save processor time, while
    the user is sizing their mesh the program will only draw the outline of
    the mesh.  It is important to remember, as constructions get more and more
    complicated, that unnecessary processor-intensive functions are just that,
    unnecessary.  For instance, if the mesh density is placed at 100 (that's
    10,000 vertices), Alias is unable to update the mesh in real-time.  This
    is the advantage of "helper" geometries; rough approximations are often
    better in complicated cases.

    The plugin also demonstrates drag-sizing in any of the three standard
    windows, and the generation of polygon geometry.


frame.plugin
------------

  Source Files:
        frame.c++
        frame.scm
        frame_init.scm

  Includes:
        AlPickList.h
        AlObject.h
        AlIterator.h
        AlViewFrame.h

  Installs Into:
        Palette -> Object Edit -> View Frame  ("mp_objtools")

  User Notes:
    This plugin will set each selected object to a certain frame number.  The
    frame number is set inside the option box.  Using frame.plugin does not
    change any keyframes or any other object in the Universe.

  Programmer Notes:
    The purpose of this plugin is to demonstrate the AlViewFrame library.  The
    plugin defines an AlIterator which runs through the currently selected
    objects and, if the are Animatable, applies AlViewFrame::viewFrame() to
    them.


helix.plugin
------------

  Source Files:
         helix.c++

  Includes:
        AlPolygon.h
        AlPolyset.h
        AlPolysetVertex.h
        AlTM.h

  Installs Into:
        Palette -> Object Edit -> Helix  ("mp_objtools")

  User Notes:
    This plugin does not have any useful options at all. It simply creates a
    double helix from polygons of radius two and height eight, centred at the
    origin.

  Programmer Notes:
    Other than the fairly simple math to create the helix, the most interesting
    portion of the code is the AlPromptBox calls found in do_double_helix().
    This shows how simple it is to have user interaction with even just a 
    momentary plugin.

    Note that kOK_Cancel and kYes_No_Cancel are the only types of prompt boxes
    that are available.


intersection.plugin
-------------------

  Source Files:
        intersection.c++

  Includes:
        AlCurveNode.h
        AlIntersect.h
        AlLinkItem.h
        AlList.h
        AlObject.h
        AlPickList.h
        AlSurface.h
        AlSurfaceNode.h

  Installs Into:
        Palette -> Surface Edit -> Intersect Objects  ("mp_srftools")

  User Notes:
    The intersection.plugin will determine common points between two curves,
    two surfaces, and a curve and a surface.  First, select two objects (curves
    and/or surfaces).  Then, activate the intersection plugin.  If one of the
    objects is a curve, the prompt line will respond with how many
    intersections there are, where in world space they are, and any relevant
    (t) or (u,v) data.  If both objects are surfaces, it will respond with
    the number of points and curves of intersection, and will also create any
    intersection curves that it finds.

  Progammer Notes:
    Once the plugin determines what type of objects have been chosen (in
    do_intersect()), it calls the specific code for that type of intersection.
    This code shows the usage of AlIntersect.  The do_intersect_crv_crv() and
    do_intersect_crv_srf() simply report data back out from their respective
    AlLists.  do_intersect_srf_srf() goes a step farther and actually creates
    objects for the intersection curves.


lpen.plugin
-----------

  Source Files:
        lpen.c++
        lpen.scm
        lpen_init.scm

  Includes:
        AlIterator.h
        AlObject.h
        AlPickList.h
        AlXevents.h

  Installs Into:
        Menu -> Utilities -> Light Pen Xfilter  ("al_goto")

  User Notes:
    Enables the FTG Lightpen (not to do anything useful, but will send messages
    to the prompt box).  Selecting this option from the menu will toggle the
    light pen on and off.

  Programmer Notes:
    This skeleton momentary function installs a Xdevice handler for the FTG
    lightpen and allows it to be enabled and disabled.  The process for
    implementing this is complicated, and the best reference is the source
    code itself.  The LPen_add_device() does the actual installation by
    calling AlXevents::addXdevice().  Check_4_LPen() interacts with the pen
    and allows it to be used for different applications.


nothing.plugin
--------------

  Source Files:
        nothing.c++
        nothing.scm
        nothing_init.scm

  Includes:
        <none>

  Installs Into:
        Palette -> Object Edit -> Do Nothing  ("mp_objtools")

  User Notes:
    Not Applicable (see Programmer Notes)

  Programmer Notes:
    This plugin does not actually do anything.  It exists solely as a template
    for developing momentary functions.  It implements a simple option box and
    contains an empty 'action' function (do_stuff_here()).  Use this to
    familiarize yourself with techniques for implementing new plugins.


pickcount.plugin
----------------

  Source Files:
        pickcount.c++
        pickcount_init.scm

  Includes:
        AlPickList.h
        AlObject.h

  Installs Into:
        Palette -> Object Edit -> Count Picked Items  ("mp_objtools")

  User Notes:
    One of the simplest plugins possible, pickcount.plugin will tell you how
    many objects are currently active (on the pick list).  It does not count
    shaders, textures, or environments.

  Programmer Notes:
    pickcount.plugin uses an AlIterator to count through the items on the pick
    list, ignoring shaders, textures, and environments.  The simple function
    countPick::func() accomplishes this.


regpoly.plugin
--------------

  Source Files:
        regpoly.c++
        regpoly.scm

  Includes:
        AlCurve.h
        AlCurveNode.h

  Installs Into:
        Palette -> Object Edit -> Regular Polygon  ("mp_objtools")

  User Notes:
    This plugin creates regular n-gons where n is set in the option box.  The
    n-gons will have vertices which all lie on a circle of radius one, centred
    on the origin.

  Programmer Notes:
    This plugin demonstrates the process required to generate closed curves.
    The entire functionality is contained within create_polygon(), which first
    creates a list of points, (note that they are four-dimensional points, with
    '1' being the value for the fourth dimension), and then sends that list to
    AlCurve::create().  Then a curveNode is created for the curve.

sphere.plugin
-------------

  Source Files:
        sphere.c++
        AlVector.h
        AlVector.c++

  Includes:
        AlCurve.h
        AlCurveNode.h
        AlDagNode.h
        AlSurface,h
        AlSurfaceNode.h
        AlTM.h
        AlWindow.h

  Installs Into:
        Palette -> Object Edit -> Contin Sphere  ("mp_objtools")

  User Notes:
    This plugin is simply a quick way to draw solid spheres.  Once the plugin
    is selected, click and drag in the Front, Right, or Top window to create
    spheres of varying radius.

  Programmer Notes:
    The main use of this plugin is as an example of interactive editing in a
    continuous function.  Code in the down_func() and move_func() shows how to
    read points from mouse-clicks and use these values to change the object's
    parameters (eg: scale).

    sphere.plugin is also important in its example of rotating a half-circle
    to create a sphere (in makeHalfCircle() and makeSphere()).

