Duplicate Along PathThis script gives the user the ability to duplicate multiple objects along a path in maya while retaining attachment to the path, a function that does not fully exist in default maya as a modeling tool. This tool updates when you make a change to any of the options. You can now also do an easy "flow path" of an object, which deforms your object along the curve while maintaining proportions.
-------------------------
To use:
1. Save the script to your documents\maya\*version*\prefs\scripts folder.
2. Start Maya.
3. In your command line or script editor, type the following and execute the following MEL script:
DupAlongPathToolbox;
4. Define your object and your path by selecting the item first, then pressing the "Object" or "Curve" button to save your selection.
5. Duplicate along the path by choosing amount of duplicates and/or distance between objects.
-------------------------
NOTES- Curve button will activate create curve tool if nothing is selected.
- If Distance is set to 0, the Quantity will spread along the curve from end to end evenly.
- If you adjust a curve with duplicates that have a specified distance, you have to refresh the duplicates to correct the distances.
-------------------------
REFRESHRefreshes the duplicates.
REVERSEReverse the direction of the curve.
DELETEDelete the duplicates.
DETACHDetach the duplicates from the motion path and also removes constraints.
-------------------------
DEFORM OBJECT ALONG PATHIf your object has flat ends and is pointing in X, you can create a merged duplicate mesh that is extruded along the curve rather than duplicated using separate pieces. This operation is independant from the rest of the options in the UI.
OPEN DEFORM ALONG PATH WINDOWThis opens a UI that basically just connects to a selected motion path. Makes it a bit easier to edit right after deforming along path.
-------------------------
ROTATEFixed - each object is rotated to the same angle
Additive - each object's rotation is added from the previous
Random - rotation is randomly generated based on the given values
Constrain - constrain rotation on specific axes to have all objects orient to the rotation of the original
SCALEFixed - each object is scaled the same
Additive - scale is added with each instance
Random - scale is randomly generated based on the given values
Constrain - constrains scale between axes to prevent undesired squishing
SCATTER Adds a random positional element to your duplications
OPTIONSChange between copied or instanced duplicates.
Change the default directionality of the duplications.