SaveAs .obj (or .treejs)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-02-17
10:10 AM
- last edited on
2023-07-12
09:11 PM
by
Doreena Deng
2016-02-17
10:10 AM
Hello all 
I try to build a 3D preview from current selected object.
I have seen the ACAPI_Automate (APIDo_SaveID, ...) call but it seem's limited to the API_FTypeID list.
Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.
In the File->Save As... command we have the .obj export.
Thanks.

I try to build a 3D preview from current selected object.
I have seen the ACAPI_Automate (APIDo_SaveID, ...) call but it seem's limited to the API_FTypeID list.
Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.
In the File->Save As... command we have the .obj export.
Thanks.
Labels:
- Labels:
-
Automation (Python or JSON)
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-02-19 10:56 AM
2016-02-19
10:56 AM
gehairing wrote:Just to clarify – do you want to add your own export filter to the "Save As…" dialog from the 3D window? For saving as .obj?
Is there another way to do a SaveAs for exporting the current selected item (or even all the current 3D model) to a .obj format.
In the File->Save As... command we have the .obj export.
Ralph Wessel BArch
Central Innovation
Central Innovation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-02-22 09:41 AM
2016-02-22
09:41 AM
Hi Ralph,
No.
I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.
No.
I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-02-22 01:08 PM
2016-02-22
01:08 PM
gehairing wrote:It depends on the required format for the data. You could temporarily place an instance of the library part in the project and extract its 3D geometry through ModelAccess or 3D Manager API. The temporary object can be deleted afterward. But then you would need to convert that data to the required output format.
I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.
Ralph Wessel BArch
Central Innovation
Central Innovation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2016-03-18 06:39 PM
2016-03-18
06:39 PM
Ralph wrote:Actually the Wavefront add-on exports its functionality through add-on communication (take a look at the Communication_Manager / Communication_Client examples in the the devkit).gehairing wrote:It depends on the required format for the data. You could temporarily place an instance of the library part in the project and extract its 3D geometry through ModelAccess or 3D Manager API. The temporary object can be deleted afterward. But then you would need to convert that data to the required output format.
I'm uploading some LibraryParts on a distant server and i want to add a 3D preview of the library part.
The ID of the command is 'OBJO', its version is 1, and it expects a pointer to a correctly filled API_IOParams structure in the parameters. Just make sure you'll start your command from above the 3D Window with only your current object in it.
Best, Ákos