Available 3D libraries in Python; To convert 3D object formats - python

Is there any python library (prefer 2x) where I can load a .x3d 3D object and convert it into FBX?
I'm currently using blender to do so; but I'm in search of a library which can run and be installed on conda.
Basically, just convert X3D to FBX (or .blend without blender :P)
Even an external online service would do. Thanks

Related

Alternative ways to convert PPTX Template to PDF using Python

I've got this working on this automated python script that edits a PPTX template and converts it to PDF, however this only works in windows operating env as the dependency required for this to work is using win32com.client. However I'll be porting the script to linux based so it will not work.
Any suggestion/work around to take for the conversion of PPT -> PDF in python without using win32com and apose.slides.
P.S. I'm also unable to install libreoffice on linux due to insufficient privileges

convert .3ds file to .obj /collada / gltf using npm package / python script

I have some .3ds format files ,I want to convert it to gltf format.
Is there any package to convert it direct to .gltf format or to collada/.obj format.
As for collada/.obj to gltf ,there are npm package available.
I need some npm package or python script (not software - have already tried Spin3DMesh ,It is able to convert but I need some npm package or python script).
packages already tried are : parse-3ds ,3dstojs but they are not giving output as Spin3DMesh.
As of this writing, current versions of Blender (2.80+) don't support .3ds, but older versions (2.79) do. So you might be able to do a Python script (see blender import/export script) that imports the 3DS file into Blender and exports to something else.
NOTE: A .3ds file is meant to be read by 3D Studio Max. Support in other software — if it exists at all — will be very incomplete. If there is any possible way to get a different format, designed for support in multiple programs, I would try to do so. OBJ, FBX, and glTF are all much more broadly compatible formats.

what is best way for convert maya py (python) to pyd?

what is best and easy way for convert maya py (python) to pyd ?
I had explored in this field, but unfortunately none of them was effective and after convert to pyd I can't import my code into Maya.
pyd files contain native binary python extensions, usially developped using Python C API and some native language.
cython might be the simplest tool that might help you creating pyd by compiling a subset of Python source code.
What are you trying to achieve ?

blender import/export script

I should create a python script for Blender that imports obj and exports obj removing all texture sections.
I never used blender, is there a good tutorial for scratch the surface and achieve this simple task?
thank you
The blender python api website includes several tutorials to learn using python in blender. You can find details of the obj importer and exporter options. The obj import/export is handled by a python addon that is included with blender.
You could start with something as simple as -
import bpy,os
for f in os.listdir('/path/to/use'):
bpy.ops.import_scene.obj(filepath=f)
bpy.ops.export_scene.obj(filepath=f,use_materials=False)
If you need more help, blender has it's own SE site that is better for blender specific scripting.

Compatibility between py2exe and GDAL for the creation of an executable file

My target is to produce a small executable (.exe) file to read shapefile format and do same easy processing. Before starting to code, I wish to know if the "OGR Simple Feature Library" (The OGR Simple Features Library is a C++ open source library providing read access to a variety of vector file formats including ESRI Shapefiles, inside GDAL) is compatible with py2exe.
I know there is a pure python library to read shapefile format, but the library can read only the external boundary and not the internals (i.e., holes).

Categories