Wavefront .OBJ Export Problem

Rediscovered Blender while looking for a good UV unwrapper, and I’m very impressed with LSCM. Now I’m trying to export an .OBJ file with two meshes originally modelled in Cinema 4D. I’ve remapped one of them using LSCM; the other mesh I prefer to leave mapped “as is”. I’ve tried both the integrated .OBJ exporter (VisualScape???), which apparently isn’t exporting the facets, as I get nothing when I reload the exported file in C4D and an error message saying the OBJ has no facets when trying to load in UVMapper. I also tried jms’s exporter, but I keep getting the following error:

AttributeError: ‘NoneType’ object has no attribute ‘tex’

The info in the script file says to “Click the UV button on the Material Editor window” in order to load realtime UV’s. I’m using Blender 2.36, and I can’t find a “UV button” on the Material tab of the Panels window or anything in the UV/Image Editor for “Realtime UV”. Can someone clue me in? Thanks!

Press F5 to get the materials section, got to the ‘Texture’ area there and click the ‘Map Input’ tab. Then click UV (it will probably be on orco at the moment). I think that is what it means. Not sure though, I don’t use that when I export .obj files with uv maps :-?

either enter face select mode

or press the make button next to TexFace in the edit button

either way the faces will be given uv mapping, but the default mapping [maps the entire image onto every quad, half of it onto every triangle]

OK, that’s getting stuff exported, at least, using jms’s script. However, it only seems to be exporting one of the meshes , even though both are selected. I’m still getting the “OBJ has no facets error” when I try to open an object exported with the integrated exporter.

This one http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif236d.py ?

Ah, could be the problem. I think I’m using an older version from a link in a thread on one of the forums here. I’ll try this one and get back to you.

Thanks so much! With the new script and the explanations, I was able to remap and save the .obj file as I wanted. You guys are the greatest!

This one http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif236d.py ?[/quote]

http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif236e.py

Thanks, jms! Just an addendum, if anyone is having similar problems and following this thread. I found that I could export the files as needed for Poser use as follows:

  1. Map each mesh, making sure that each material has a texture mapped to UV.

  2. Select all meshes in Object Mode.

  3. Export using “Standard”.

Haven’t tried the newest version of the plug-in that jms just posted, though.

:frowning:
Sorry : just the import part was improved .