Hi,
I am having trouble with the txt file that’s generated using wrap.savePoints.
I was able to use wrap.savePoints to save a few points (barycentric) to a txt file. However, when I was trying to load these points back to WrapX, it gave me the following error:
Traceback (most recent call last):
File “<wrap_console>”, line 1, in
File “C:\Program Files\R3DS\WrapX1.3\python2.7\lib\python2.7/json/init.py”, line 290, in load
**kw)
File “C:\Program Files\R3DS\WrapX1.3\python2.7\lib\python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “C:\Program Files\R3DS\WrapX1.3\python2.7\lib\python2.7/json/decoder.py”, line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “C:\Program Files\R3DS\WrapX1.3\python2.7\lib\python2.7/json/decoder.py”, line 383, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
It sounds like the format of the txt file generated by wrap.savePoints cannot be recognized by wrap.loadPoints. I cannot load this txt file into Wrap3 either. Does anyone have this problem? Thanks for your help!