Home Technical Talk

Maya Bezier curve formating

polycounter lvl 15
Offline / Send Message
Lamont polycounter lvl 15
Looking at the documentation for the curve in Python:

A curve with 4 points is this:
cmds.curve( per=True, p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9), (0, 0, 0), (3, 5, 6), (5, 6, 7)], k=[-2,-1,0,1,2,3,4,5,6] )

It looks like it's going: handle vector, point, handle vector, point...etc. But there are only 3. Maybe I am getting tired of looking at this stuff, but this is what it says:
# This command creates a closed (or "periodic") curve with
# four distinct CVs. You must specify a knot vector when the
# "-per" flag is used. Notice that the first "degree" points
# are the same as the last "degree" points (ie. the first three
# points are the same as the last three points). Notice also
# that the knot spacing between the first "degree" knots must
# be the same as the spacing between the last "degree" knots
# (ie. the space between the 1st and 2nd knots is the same as
# the space between the 7th and 8th knots, and the space between
# the 2nd and 3rd knots is the same as the space between the
# 8th and 9th knots). There must be space between the first
# "degree" knots, unlike the previous example, where the first
# "degree" knots are the same.

But I am still not getting the results I expect when I try to parse quads from an XML file.

How is this done/read/interpreted?

Replies

Sign In or Register to comment.