pmst icon indicating copy to clipboard operation
pmst copied to clipboard

Small glitch

Open everythingability opened this issue 4 years ago • 2 comments
trafficstars

Just working through the instructions. I got...

  File "/Users/tomsmith/pmst-master/tools/pointillism-spritesheet.py", line 9, in <module>
    for h in range(0,30,2)+range(100,130,2):

fixed with...

joinedlist = range(0,30,2)+range(100,130,2)
for h in joinedlist:

everythingability avatar Dec 30 '20 18:12 everythingability

Oh nope... TypeError: unsupported operand type(s) for +: 'range' and 'range'

everythingability avatar Dec 30 '20 18:12 everythingability

Hi, I think the script is written for python 2, quick fix for python 3 would be

list(range(0,30,2))+list(range(100,130,2))

LingDong- avatar Dec 30 '20 21:12 LingDong-