How to export the model into obj with material?

Hi All,
I’m new to SDK. There is ruby api to export model into obj format.
Do we same option in SDK ?
If not how can I export the model to obj . Any reading material which will help me out ?

Yes, because the importers and exporters are part of the application feature set and the Ruby API runs within the “live” SketchUp application.

No, because the SDK in designed to be used standalone or within 3rd party applications to create 3rd party importers and exporters from the 3rd party native format. In these scenarios the 3rd party coders would know more about their native format and would prefer (most likely) to code the output into or from their native format themselves.

But this also means the coder needs a good understanding of OBJ file format:

http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf

Secondly, having the code for import and export of all those foreign formats that the SketchUp application supports would probably bloat the SDK’s size.

However, … as OBJ is a defacto standard, it is likely you might find a LGPL or opensource C library for it that you can use without much effort.

Google search “Wavefront OBJ export C library -object”

1 Like