FreeCAD / FreeCAD-render

The Render workbench
Other
156 stars 33 forks source link

Is there exisiting documentation on how Addon developers can integrate RenderWB into their workbenches? #454

Closed luzpaz closed 4 weeks ago

luzpaz commented 1 month ago

As being discussed in https://github.com/rostskadat/FreeCAD-SH3D/issues/5 is there documentation that said devs can reference ? Usercases:

howetuft commented 1 month ago

There is a complete API to interact programmatically with Render. Movie WB uses it, for instance. This API is not documented per se, but all modules, all objects and all attributes in Render have a docstring and I take a special care to write PEP-8 compliant code, to keep it as understandable as possible. So it's possible to recreate Render buttons in other WB.

That being said, I'm not convinced there is a need for such a tight integration.

Some workbenches (the vast majority) create models in FreeCAD:

Some others export them to rendering tools:

The glu to connect them is just FreeCAD!

luzpaz commented 1 month ago

Fair. What about the first bullet point ?

howetuft commented 1 month ago

Oh yes! The first bullet is relevant indeed: workbenches with special needs in terms of rendering could reference Render as an optional dependency in their package.xml

luzpaz commented 3 weeks ago

Oh yes! The first bullet is relevant indeed: workbenches with special needs in terms of rendering could reference Render as an optional dependency in their package.xml

@howetuft did you mention this somewhere in the RenderWB docs?