Mesh Diagrid
Mesh Diagrid
the last section of the code specifies how a user creates Untitled Type a Keyword or phrase
the diagrid and how the software should react to mouse 3DS Edit Tools
MAXScript
Group
Help
Views Create Modifiers Animation Graph Editors Rendering Lighting Analysis Customize
clicks and drags. When a user clicks the mouse, the All View Create Selection
location of the click (gridPoint) is considered the origin of Graphite Modeling Tools
Polygon Modeling
Freeform Selection Object Paint
the mesh. When the user moves the mouse, the second
Diagrid Mesh002
click is used to derive the width and the length of the mesh. Modifier List
Pressing the escape key stops the creation of the diagrid. Lattice
Set Volume
Source Volume
Only In Volume
by adding modifiers such as edit Mesh or FFd 3x3x3 (fig. All Ver tices
66). a complex organic form can be similarly achieved (fig. Control Points:
Reset
67). in this case, a hollowed out diagrid mesh was distorted Animate All
using the bend and spherify built-in modifiers. to achieve Conform to Shape
Inside Points
the final organic form, the geometry was then thickened and Outside Points
smoothed using the built-in shell and turbosmooth modifiers. Offset : 0.05
About
35 / 100
0 10 20 30 40 50 60 70 80 90 100
modPanel.setCurrent0bject $.m X: Y: Auto Key Selected
diagridmesh_plugin_def Click and drag to pan a non Set Key Key Filters... 35
Unlike the previous tutorial, we will create a scripted utility called DiagridMesh rather than a scripted plugin.
Open 3ds Max, save and close any prior scenes, create a new empty scene and choose MAXScript
New Script from the top menu. In the script window that opens, type the following algorithm:
Save your script and then choose Tools Evaluate All to run the script.
Set the viewport display to display face edges by clicking on the display
mode (e.g. Realistic or Smooth+Highlights in the upper left corner of the
viewport) and choosing that option. This will enable you to see the diagrid
lines when you derive the surface. Next, create a NURBS surface.
To run the actual script utility, go to Utilities (hammer icon) MAXScript
Utilities (Pull-down menu) Diagrid Mesh. Use the pick button, titled Select tip CREATING A NURBS
NURBS, to select the NURBS surface from the scene. You can choose any SURFACE
number of u and v sections (rows and columns). Once you have selected the
desired parameters, press the Generate Diagrid button. This will generate To create a NURBS surface, select
an editable mesh diagrid at the same location as the original NURBS surface. Create Geometry NURBS
Select the move command and move the diagrid so you can view it (fig. Surfaces CV Surf and drag a rectangle
68). The diagrid will have the same name as the original NURBS surface in the viewport. If you wish to undulate the
surface, select it, go to the modify panel,
followed by the suffix “-Diagrid” and additional identifying numbers.
click on the + sign next to the word ‘NURBS
Surfaces’ to open the sub-objects list and
then choose Surface CV. You can then select
one or more of the yellow control vertices in
the viewport and move them in any direction
to undulate the surface. Once done,
deselect Surface CV and select the whole
NURBS surface.