breaking curve tangent

35 views
Skip to first unread message

e955...@gmail.com

unread,
Sep 12, 2015, 12:06:19 PM9/12/15
to Python Programming for Autodesk Maya
Hi there,

i was wondering if anyone knew a way to break a tangent at a particular edit point. I have created an ep curve and i want some of the curves that are created between the edit points to be linear rather than cubic.

is there a python command for this ?

thanks,
Sam

Joe Weidenbach

unread,
Sep 25, 2015, 4:18:50 PM9/25/15
to python_in...@googlegroups.com
Hi Sam,

That's not so much about Python as it is about how curves are defined in Maya.  Curves have a very specific "Degree" (cubic) which means that generally you need n+1 points to define a given span.  For a cubic curve, that means 4 points.  In order to make a sharp corner, you would need to place 4 points on top of each other (you can snap them with the 'V' key).

In script, it would be the same type of thing.  In theory (I haven't tried it), you could set up a tool that would read in your curve, read a selected point, and then recreate the curve with 4 points at the point you selected instead of the single point, but it would take some noodling.  NURBS are not quite as friendly in that way as Bezier Curves are.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6e2eae76-0df1-4c2f-ac65-7927686abb78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages