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. On Sun, Sep 13, 2015 at 4:06 AM, <[email protected]> wrote: > 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 > > -- > 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 [email protected]. > 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. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6Vp3n6AB97RCJ2G-mDY%2B%3DmeWzwB21N_9nokSbNQLSZYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
