Python error message "IndentationError: unindent does not match any outer indentation level" October 20, 2009 01:20AM |
Registered: 15 years ago Posts: 17 |
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 20, 2009 02:12AM |
Registered: 16 years ago Posts: 458 |
Quote
BingDai Wrote:
> I know that Python is extremely strict with
> identation (a misuse of tab/space occurs the
> indentation error), so I suspect that, when I
> copy&paste the cam.py source code from a website
> into Python, I also pasted some unecessary
> tab/space that confuses Python.
for nCurvePoints in myCurvePoints: # Copy the first set of co-ordinates # ready for a isCyclic condtion if myBezPointNumber == 0: myFirstCoods = nCurvePoints # Apparently BezTriple outputs 9 floats for each handle/knot in 3D space # so print out each float value print"\n##############################################" print"Bezier point number: %s" % myBezPointNumber print"Out of a total: %s" % myNumberOfPoints print"Current iteration at frame: %s\n" % myCurrentPathLen print"H1x: %s " % nCurvePoints.vec[0][0] print"H1y: %s " % nCurvePoints.vec[0][1] print"H1z: %s " % nCurvePoints.vec[0][2] print"\n" print"Px: %s " % nCurvePoints.vec[1][0] print"Py: %s " % nCurvePoints.vec[1][1] print"Pz: %s " % nCurvePoints.vec[1][2] print"\n" print"H2x: %s " % nCurvePoints.vec[2][0] print"H2y: %s " % nCurvePoints.vec[2][1] print"H2z: %s " % nCurvePoints.vec[2][2] print"##############################################\n"
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 20, 2009 10:26PM |
Registered: 15 years ago Posts: 17 |
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 22, 2009 02:17AM |
Registered: 15 years ago Posts: 26 |
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 23, 2009 08:57AM |
Registered: 18 years ago Posts: 161 |
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 23, 2009 02:53PM |
Registered: 16 years ago Posts: 458 |
Re: Python error message "IndentationError: unindent does not match any outer indentation level" October 23, 2009 07:59PM |
Registered: 15 years ago Posts: 26 |