On 10/08/2013 at 04:54, xxxxxxxx wrote:
Hi guys. Another weird issue with me:)
I have a Spline GUI in interface. Once it's loaded it looks like this:
And console spits point position like this:
Point:0 position Vector(0, 1, 0)
Point:1 position Vector(1, 1, 0)
Everything seems to nice and dandy, however, ... Once I manualy add points on that spline:
console seems to be spiting something weird:
Point:0 position Vector(0, 1, 0)
Point:1 position Vector(1, 0, 0)
Point:2 position Vector(1, 0, 0)
Point:3 position Vector(1, 0, 0)
Point:4 position Vector(1, 0, 0)
Point:5 position Vector(1, 0, 0)
Why are all points starting from point 1 are at position 1,0,0? I don't get it.
Here's the code I am using.
pointCount = op[SPLINE_SIZE].GetKnotCount()
print ("Knot count " , pointCount)
for i in range (0, pointCount) :
PointPos = op[SPLINE_SIZE].GetPoint(i)
print ("Point:%s position %s " % (i, PointPos))