[Bf-python] svg2obj script.
Campbell Barton
cbarton at metavr.com
Wed Mar 28 15:04:10 CEST 2007
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)
I went through and hada look and found some other areas for improvement.
while DATA.find(d,b1,b2)!=-1 :
tagplace.append(DATA.find(d,b1,b2))
b1=DATA.find(d,b1,b2)+1
# 3 Lookups, not optimal
while True:
i = DATA.find(d,b1,b2)
if i==-1: break
b1=i+1
Also, your using find in a way thats not very readable.
if pathname.find(os.sep)!=-1:
is better
if os.sep in pathname:
if ndata.find('-')!=-1 and ndata[ndata.find('-')-1] not in [' ', ',', 'e']:
can be
if '-' in ndata and ndata[ndata.find('-')-1] not in ' ,e':
jean-michel soler wrote:
> 0.5.7 : - Wash down of some handle problems.
>
> 0.5.8 : - 2007/3/9
> Wash down of the last exec and correction of a
> problem with the curve's first beztriple handle
> which was not recorded at first time .
> - Added some units managements
> - Correction of the rotate matrix
> - Correction of the skew matrix
> - change in the wash_DATA function suggested by cambo
> - added __slot__ in class Bez, ITEM and CURVE suggested by cambo
> - remove unused properties in class ITEM and CURVE
>
> http://jmsoler.free.fr/util/blenderfile/py/svg2obj_058.py
> It is waiting to be commited.
>
> jms
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python
>
--
See MetaVR Visuals Used at the Combat Studies Institute
http://www.metavr.com/casestudies/baghdadviews.html
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list