Maya Scripts
Script Details
Superposed GridSurfaces 0.9
Author: TOI - T.Welman
Date: 2006-03-01
Synopsis:
Creates surfaces from groups of 'points'. Every surface beyond the first is superposed over the previous surface by a distance equal to that 'surface-point' Y-value. The points are calculated from the rotatepivots of transformnodes. Works with grid-like structures.
Usage:
Requirements:
- The transformnodes should be in an orthogonal grid in a XZ plane
- The rotatepivot of the transformnodes should be positioned properly
- The first group of points should be a full set of points. (none should be missing, or you'll get messy geometry)
- The points in the other groups should be above a point in the first group (within a adjustable tolerance)
- If no point above a point in the first group is specified, a Y-distance of 0 is assumed
The script attempts to find a grid-like pattern within the points of the first group, by means of a lot of sorting and testing. Points with
a distance larger than $tolerance are assumed to be a new row or collumn.
If points are 'missing', you'll probably get messy surfaces, but the script will work.
If two points are too close to eachother, one is filterd out.
- The transformnodes should be in an orthogonal grid in a XZ plane
- The rotatepivot of the transformnodes should be positioned properly
- The first group of points should be a full set of points. (none should be missing, or you'll get messy geometry)
- The points in the other groups should be above a point in the first group (within a adjustable tolerance)
- If no point above a point in the first group is specified, a Y-distance of 0 is assumed
The script attempts to find a grid-like pattern within the points of the first group, by means of a lot of sorting and testing. Points with
a distance larger than $tolerance are assumed to be a new row or collumn.
If points are 'missing', you'll probably get messy surfaces, but the script will work.
If two points are too close to eachother, one is filterd out.
Script:
superposed_gridsurfaces.mel Download
- View source
Keywords:
grid, superposed, array, bubble, bubblesort, points