MaxScript Release 0.2 Source for max 4 (02/25/2001)
Copyright (c) 2001 by Borislav Petrov, Bobo's
Rendert**ls.
SHORT DESCRIPTION
LiftFromEdge is a 3ds max
4 scripted tool that resembles the LiftFromEdge command of Nichimen's
Mirai.
It extrudes a polygon on the one side
and rotates the new edge around the selected edge.
INSTALLATION
LiftFromEdge is a Macroscript containing
a scripted mouse tool.
Download the distribution
file from the main PolyMeshTools page.
Unzip the .MS file to your \STDPLUGS\STDSCRIPTS
directory
Unzip the .BMP icon files to your \UI\ICONS
directory.
Start max 4,
Go to Customize>Customize User Interface,
find Category "PolyMeshTools" and drag to a toolbar or assign to a Keyboard
Shortcuts.
NOTE: The
tool will NOT work from a QuadMenu and will freeze max
if attempted to start from a QuadMenu!
RELEASE HISTORY
0.2: New meshing code - uses the same code
as the LiftFromVertex. Fixes some problems with lifting from Open Edges.
0.2: Speed Up Redraws.
0.0.1: First Release.
USAGE
The script will work only when a single PolyObject
with no modifiers is selected and the Sub-Object mode is set to Edge.
Select a SINGLE edge on the object.
When you click on the icon, the max prompt
will tell you to click in the viewport to start the operation.
After you click, the edge selection in the
mesh will be acquired. If there are more than one edges selected, the tool
will exit.
If you have selected a single edge, the prompt
will tell you to move the mouse left/right in order to select the face
to lift. An edge in PolyMesh can have ONE or TWO faces. Moving the mouse
to the left of the first point you clicked at in the viewport will select
the first face. Moving the mouse to the right will select the second face
(if existing)
Click again to split the mesh and start lifting.
The angle will be based on the left/right motion of the mouse relatively
to the point you just clicked.
Note that sometimes the angle value might
be off by 90 or 180 degrees - I will have to fix that :o)
The values displayed in the XYZ fields of
the Max prompt will show the angle in absolute and relative coordinates.
The Y and Z will be off by 180 degrees from each-other - the one will show
the actual angle, the other will show the same angle offset by 180 degrees.
Once you have the desired lifting, click again
to finish.
You can undo the complete operation, but cannot
currently cancel it without leaving a changed mesh. After a cancel, just
use the Undo button (will try to fix this later).
KNOWN LIMITATIONS
You cannot currently use LiftFromEdge with
anything else than a PolyObject with no modifiers. I will try to make it
work with the BaseObject when MeshSmooth etc. are on top, but for now it
requires a collapsed PolyMesh.
Extruding non-convex polygons (like the capping
of an extruded star shape) will yield unpredictable results.