TheRaytracers / freecad-povray-render

FreeCAD workbench to render images of your model easily.
GNU Lesser General Public License v2.1
6 stars 1 forks source link

Which are the supported object types? #6

Open luarpy opened 9 months ago

luarpy commented 9 months ago

Hello! I wanted to try the POV-Ray-Workbench in FreeCAD with a test figure, an example from FreeCAD called PartDesignExample.FCStd in this case. I get the next output in the python console:

23:42:28 Path to *.pov File: ~/render/render.pov
1 parent objects found in highest layer
containing totally 16 objects
Your model contains 9 objects which aren't supported (will be represented as mesh).
Orthographic camera

23:43:53  PropertyPythonObject::toString(): failed for <class 'Lights.ViewProviderSpotLight'>
23:43:53  Traceback (most recent call last):
  File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
<class 'TypeError'>: Object of type SoGroup is not JSON serializable

I also get this error window which does not clarify anything further: Screenshot_20240211_232955

What I understand is that:

  1. The object is not supported and there is some kind of default object
  2. There is an exception/error in the python library(?). I'm working with python 3.11.6 from Manjaro Linux this time

Is there any way I can provider more information? Someway I could contribute more in this issue?