PyWavefront icon indicating copy to clipboard operation
PyWavefront copied to clipboard

access raw uv coordinates from obj

Open mshooter opened this issue 2 years ago • 3 comments

Hi,

I liked that I could access the raw vertices from the obj file, however, is it also possible to access the raw uvs?

scene = pywavefront.Wavefront(os.path.join(data_dir, "smal_data/barc.obj"), parse=True) scene.vertices

mshooter avatar Jan 20 '23 16:01 mshooter

https://github.com/pywavefront/PyWavefront/issues/87#issuecomment-464348971

einarf avatar Jan 20 '23 20:01 einarf

I think you misunderstood my question, I want the uv's in the order that the uv's are in the obj file.

mshooter avatar Feb 01 '23 08:02 mshooter

I don't think there is a simple way unless you extend the current parser. Maybe trimesh have something for this? https://github.com/mikedh/trimesh

einarf avatar Feb 04 '23 22:02 einarf