e955...@gmail.com
unread,Apr 19, 2015, 8:11:12 AM4/19/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python_in...@googlegroups.com
hey i have some code here that creates three simple curves and then inserts a knot on each curve and attempts to loft the three together.
###
cmds.curve(n='c1', d=1, p=[(0,0,0),(0,3,0)])
cmds.curve(n='c2', d=1, p=[(2,0,0),(2,3,0)])
cmds.curve(n='c3', d=1, p=[(4,0,0),(4,3,0)])
cmds.insertKnotCurve( 'c1.u[0.6]', ch=True, rpo=True)
cmds.insertKnotCurve( 'c2.u[0.8]', ch=True, rpo=True)
cmds.insertKnotCurve( 'c3.u[0.8]', ch=True, rpo=True)
cmds.loft('c1','c2','c3', po=1,d=1, ss=1)
###
the result of the loft is strange though, as it seems to not be able to deal with the first curve having a knot placed at '0.6' along its parameter length. If all three curves have knots added at the same value the lofting works fine.
Does anyone know how to add knots to curves at different '.u[]' values and have them loft together correctly. should be simple fix im hoping ha
thanks alot guys,
Sam x