Adverti horiz upsell

Curve correction tool 1.0.0 for Maya (maya script)

Draw curves intuitively in Maya, similar to Adobe Illustrator. The tool would attach, correct, open and close curves automatically.

License
Button download
338 Downloads

Compatibility

  • 2012, 2011, 2010

Operating Systems

  • Mac
  • Windows

History

Created:06/30/2011
Last Modified:07/02/2011
File Size: 7.28 KB

Keywords

correction

Use toggle() to toggle between on/off states, assigning/killing script jobs, who monitor curves selection and creation, and apply correction automatically.
Use soft select falloff radius to set the threshold for the test if the curve edges of the correcting curve are close enough to the first curve in order to apply the correction.

Specifically:

1. Put the script in PYTHONPATH (e.g. C:/Documents and Settings/<user>/My Documents/maya/scripts).
2. Make a shelf button from the following code or simply run it:
   import curve_correction
   curve_correction.toggle()
3. Draw one curve or select one curve.
4. Draw another curve close to it. Closeness is determined relatively to the falloff radius of the soft select tool (Hold b and LMB while moving the mouse horizontally).
5. Features and notes:
   A. It attaches lines automatically.
   B. It closes the first curve automatically if both ends of one curve are close to both ends of the other curve.
   C. The orientation of the second curve matters - it matters from where you start drawing.
   D. Algorithm:
      1. It locates on cur1 the closest point to each one of the two ends of cur2.
      2. It detaches curve1 in these two points, splitting it to 3 curves: dc0, dc1, dc2.
      3. dc1 is deleted.
      4. cur2 is attached to dc0 and dc2.



Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • rushcg
    rushcg
  • AndoRahms
    AndoRahms
  • Max Steven
    Max Steven
  • Owen Rees-Hayward
    Owen Rees-Hayward
  • wangwang wangwang
    wangwang wangwang
  • blakhawk
    blakhawk