Submitter
File Information
- Submitted: Aug 23 2015 09:05 PM
- Last Updated: Mar 06 2016 03:35 PM
- File Size: 39.72KB
- Views: 43891
- Downloads: 4,167
Previous Versions
Download Instance Along Curve 1.1.0





maya instancing curve nurbs plugin

Maya API plugin developed in Python that tries to simplify the process of instancing various objects along a curve. The plugin essentially creates a new dependency graph node called instanceAlongCurveLocator, which handles all the necessary logic. It also includes a node creation command and an Attribute Editor template for a very familiar and user friendly interface.
New version demo video: Patch Video
Difference with other approaches
Because it is a DG node that is recomputed each time Maya considers necessary, there is no need to execute manual scripts or hacks or custom windows to update the instances. Also, it is very efficient in updating each instance, because every relevant instance attribute is connected to the locator, and only recomputes what is needed.
However, Maya makes instancing objects from a plugin node very difficult, so there are some known limitations.
More info at https://github.com/m...tanceAlongCurve Current Version: 1.1.0 (v1.1.0) NEW features
- Added rotation manipulators, with options to reset both positions and angles
- Added translate, rotate and scale offsets, both local and global
- Instantiates objects based on their pivots
- Added curve start and end values
- Added a ramp repeat value
- Added UI annotations
- Reworked core logic, orientation axis easier to handle/understand
- Objects now preserve their initial rotation
- Copy input transform now updating correctly
- Distance mode now respects distance
- It's a dependency graph node, so it works gracefully with the Maya environment.
- Instance an object by count or by distance between instances.
- Various rotation modes, including chain mode.
- Curve distance offset, useful for tank treads.
- Customize the instances transformation by ramps evaluated in curve parameter space.
- Customize the ramps' offset with keys or expressions for animations.
- Customize how instances look in viewport.
- Randomize instances transformations.
- Portable.
- User friendly, highly flexible.
- Manually manipulate rotations, to fix complicated situations
- Set global&local offsets for translation, rotation and scale
- Customize which part of the curve is going to be instantiated
- Customize how many times ramps are going to be repeated over the curve
Save instanceAlongCurve.py under MAYA_PLUG_IN_PATH
- (Linux) $HOME/maya/plug-ins
- (Mac OS X) $HOME/Library/Preferences/Autodesk/maya/plug-ins
- (Windows) \Users\<username>\Documents\maya\plug-ins
To use the plugin, select a curve first and the shape you want to instance and go to Edit->Instance Along Curve. You can save it as a Shelf Button if you want.
Known issues
- When batch rendering, if the node has complex logic depending on time, it may be necessary to bake the node and its children. In some renderers, the node is not being evaluated each frame.
- When the instancing mode is by distance, any change on the curve length is not immediatly reflected until a change on the instancing attributes is made.
MIT
What's New in Version 1.1.0 (See full changelog)
- ### 1.1.0
- #### New Features
- * Added rotation manipulators, with options to reset both positions and angles
- * Added translate, rotate and scale offsets, both local and global
- * Instantiates objects based on their pivots
- * Added curve start and end values
- * Added a ramp repeat value
- * Added UI annotations
- #### Changes
- * Reworked core logic, orientation axis easier to handle/understand
- * Objects now preserve their initial rotation and pivots
- #### Fixes
- * Copy input transform now updating correctly
- * Distance mode now respects distance
- * Various other performance issues, edge cases, etc.
- ### 1.0.3
- - Added distance offset, contributed by MirageYM
- - Fixed normalization of ramps axes
- Compatibility issues: ramp amplitudes may need to be adjusted.
- ### 1.0.2
- - Fixed plugin not working with curves created with the EP curve tool
- ### 1.0.1
- - Rotation ramp now uses degrees, not radians
- - Fixed random being dependent on the ramp amplitude; now it is not
- - Fixed scale and position ramp incorrectly normalizing axis vector
Screenshots
this is pretty interesting! but it only seems to work with the regular EP/CV curves but not the Bezier curves for some reason. =/
Thanks for this script very helpful indeed.
Installation path...
Save instanceAlongCurve.py under MAYA_PLUG_IN_PATH
- (Windows) C:\Program Files\Autodesk\Maya201#\bin\plug-ins
-
- nunazx likes this
- Report
Thanks for this!
I get a crash every time when try to load the plugin.Any idea where to look for solution ?
thanks for this plug-ins
anyone tell me how to install this file,what is this maya_plug_in_path.this file doesn't exists in my maya folder,Solution please...
-
- RektSouls likes this
- Report
Maya 2017 Update 3 Not work
Thanks
anyone tell me how to install this file,what is this maya_plug_in_path.this file doesn't exists in my maya folder,Solution please...
Create it your self
Paste instanceAlongCurve.py into the C:\Program Files\Autodesk\Maya201#\bin\plug-ins
After that go to Windows-->Settings/Preferences-->Plug-in manager and turn on the one you need
Paste instanceAlongCurve.py into the C:\Program Files\Autodesk\Maya201#\bin\plug-ins
After that go to Windows-->Settings/Preferences-->Plug-in manager and turn on the one you need
Hello
What's the name in the plugin manager? Because I don't find (if the name are same).
I tried to copy what the original hint sad (not worked) deleted
and after I tried to copy to C:\Program Files\Autodesk\Maya201#\bin\plug-ins
I have no clue what's the problem :/
(Maya 2016)
Edit
Ok, nevermind!
I copied the script to the wrong directory with my muscle reflexes not used my brain...
- 79 Total Files
- 77 Total Categories
- 38 Total Authors
- 201,086 Total Downloads
- Rig_Muaaz Latest File
- ishaq.animator Latest Submitter
25 user(s) are online (in the past 60 minutes)
2 members, 19 guests, 0 anonymous users
Bing (4), 3d3d3d4d, kiwi7756
Great tool...
But can we instance multiple objects to a single spline without intersecting