break a tangent on a curve point

37 views
Skip to first unread message

e955...@gmail.com

unread,
Feb 21, 2015, 3:55:03 PM2/21/15
to python_in...@googlegroups.com
Hi there,

i was wondering if anyone knew of a way to break a tangent on a particular edit point on a curve. So that if the curve is cubic, you can make the tangent linear at a particular point.

does anyone know a way to do this in python with maybe insertKnot or rebuildCurve commands. So far i can't find a way.

thanks,
Sam

Justin Israel

unread,
Feb 21, 2015, 6:24:16 PM2/21/15
to python_in...@googlegroups.com
I will reply in the meantime with most likely the least correct solution, until someone with more curve experience can offer better. As far as I understand, unless it is a bezier it doesn't have a proper editable tangent. What about this?

1. Select the target edit points:  (P-1) , P , (P+1)
2. detachCurve   (now you have 4 curve components)
3. Select the two curves:  (P-1, P)  and (P, P+1)
4. rebuildCurve: uniform, Keep Ends, Spans 1, Degree 1
5. Select all curves
6. attachCurve: connect, keep multiple knots

Ok now someone else can point out that I have probably overcomplicated this and there is a simpler way.

Justin


--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ac2b8f5f-01ca-4fc7-a465-0d7274f6d930%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

e955...@gmail.com

unread,
Feb 21, 2015, 6:35:13 PM2/21/15
to python_in...@googlegroups.com, e955...@gmail.com
thanks Justin, will check this out. Seems like it should be an easy fix, but maybe it not implemented hmmm.

Sam
Reply all
Reply to author
Forward
0 new messages