[Bf-python] svg2obj script.

Campbell Barton cbarton at metavr.com
Wed Mar 28 16:39:21 CEST 2007


jmsoler at free.fr wrote:
> Selon Martin Poirier <theeth at yahoo.com>:
> 
>> --- Campbell Barton <cbarton at metavr.com> wrote:
>>
>>> Hi JMS, can you resolve this?
>>>
>>>
>>>   File
>>> "/root/.blender/scripts/bpymodules/svg2obj.py", line
>>> 1086, in
>>> control_CONTAINT
>>>      while txt.count(')',t0)>0:
>>> TypeError: count() takes exactly one argument (2
>>> given)
>>>
> 
> Seems that you have a problem with your python.
> Try to read this : http://docs.python.org/lib/string-methods.html
> count(  	sub[, start[, end]])
>     Return the number of occurrences of substring sub in string S[start:end].
> Optional arguments start and end are interpreted as in slice notation.

Ok, well Im sure I wont be the only person who'll come across this problem.

count is a builtin and Im using 2.4 and 2.5, at the moment I think we 
support python 2.3


Any other comments?






More information about the Bf-python mailing list