I'm missing something simple I think.
I ran the example1.py and it did work.
I made a sketch and a lens and a ray.
But, can't seem to get any refraction...
- Snip macro screenshot-665527.png (47.73 KiB) Viewed 3414 times
Just noticed I get no error when I change position of the lens in the file where I ran example.py
But, in the attached get:
Code: Select all
15:04:17 PropertyPythonObject::toString(): failed for <class 'OpticalObject.OpticalObjectViewProvider'>
15:04:17 Traceback (most recent call last):
File "/usr/lib/python3.9/json/__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python3.9/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.9/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.9/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type FeaturePython is not JSON serializable
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."