need help for objio_wings_fix.py with 2.28

hi

i know that i was told that that script does only work with blender 2.23.
some scripts do work now on os x so i hoped that it will be the same with this one.

the problem i run into is that eather export or import give me the followong errors:

when i hit export

Writing head4…
In Object_GetSelected()
Traceback (most recent call last):
File “OBJIO_wings_fix.py”, line 158, in EventGUI
File “OBJIO_wings_fix.py”, line 289, in ExportFunction
File “OBJIO_wings_fix.py”, line 306, in ExportFunctionOK
File “OBJIO_wings_fix.py”, line 668, in ObjExport
AttributeError: has_uvco

ok what does has uvco mean since the object gets exported and has not yet uvco!

when i hit import

import into Blender …
Traceback (most recent call last):
File “OBJIO_wings_fix.py”, line 151, in EventGUI
File “OBJIO_wings_fix.py”, line 267, in ImportFunction
File “OBJIO_wings_fix.py”, line 505, in ObjImport
AttributeError: has_uvco

i rememeber wehn i removed the has_uvco line that the next error was in 509 and telling me the objet has a material

Traceback (most recent call last):
File “OBJIO_wings_fix.py”, line 151, in EventGUI
File “OBJIO_wings_fix.py”, line 267, in ImportFunction
File “OBJIO_wings_fix.py”, line 509, in ObjImport
AttributeError: mats

i do not undertsand the reason why the script does not allow any io.

somebody help me?

This script does not work without Blender210 module…
and there is no module like that in 228.

can that be fixed ? We OSX jokers realy neeeeeeeed an exporter.
But even so the free unwrapper is kinda wea=k. Though Wings is nice. We realy realy realy need a better UV unwraper for blender. That goes for all users.
Oh well rant over. ^‘o’^

Script needs to be rewrited with NMesh module functions and variables …
Do you really want this script?

Script needs to be rewrited with NMesh module functions and variables …
Do you really want this script?[/quote]

YES PLEASE with sugar on top !

But what would it take to entice you to make a new Super powered uv paint unwrap script ? I have candy, and books and stuff. And maybe cash in a few weeks…

Importing of .obj would make working with Wings and Blender a lot easier… unless there’s another way besides crossroads to get from one program to the other that you know of.

try this, maybe it will work (I didn’t test it with mesh with materials, but with only geometry, it worked flawlessly).

http://www.clubinfo.bdeb.qc.ca/~theeth/objIO_288.py

Martin

AAAAAAAAAAA!!! Why have you been hideing this for so long Theeth ! Shame on you! .

Export works. Please have import now ! Please !

Crash log :

Using a clean Global Dictionary.
Run Python script “objIO_288.py” …
Traceback (most recent call last):
File “objIO_288.py”, line 146, in EventGUI
File “objIO_288.py”, line 262, in ImportFunction
File “objIO_288.py”, line 467, in ObjImport
AttributeError: SpecR

^v^

took me a good 10 mins, I just had to change three or four lines of codes, not like I was hiding anything.

as for the crash: told ya I haven’t worked on the material import part yet.

maybe next week, kinda busy lately.

Martin

I have candy :wink: :wink: :wink: :wink:

Oh ok, I will wait, wish you could do it in your dreams and sleep.
Maybe one day that will be possible .

^v^

Try this:
http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif228.py

Not exactly the same “obj_io”, there is little improvement for exports.
Import works with uvmapping + multimaterial if there is a .mtl file in the same directory.

I have problems importing a obj-file (Blenders standard uv-sphere) in Wings 0.98.12 under Linux.

In the shell i have:

Trying: [{buffer_size,32},{depth_size,32},{stencil_size,8},{accum_size,16}]
Trying: [{buffer_size,24},{depth_size,32},{stencil_size,8},{accum_size,16}]
Trying: [{buffer_size,24},{depth_size,24},{stencil_size,8},{accum_size,16}]
Trying: [{buffer_size,24},{depth_size,24},{stencil_size,0},{accum_size,16}]
Trying: [{buffer_size,16},{depth_size,24},{stencil_size,8},{accum_size,16}]
Trying: [{buffer_size,16},{depth_size,16},{stencil_size,8},{accum_size,16}]
Trying: [{buffer_size,16},{depth_size,16},{stencil_size,0},{accum_size,16}]
Actual: RGBA: 5 6 5 0 Depth: 16 Stencil: 0 Accum: 16 16 16 16
wpc_obj:command/3: bad return value: {‘EXIT’,
{function_clause,
[{e3d_mesh,
used_materials_1,
[[{e3d_face,
[807,1,993],
[],
[],
[…]|…},
{e3d_face,
[993,1|…],
[],
[]|…},
{e3d_face,
[992|…],
[]|…},
{e3d_face,
[…]|…},
{e3d_face,[…]|…},
{e3d_face|…},
{…}|…],
[]]},
{wings_import,
distribute_materials_2,
2},
{wings_import,
distribute_materials_1,
2},
{wings_import,
distribute_materials,
1},
{wings_import,import,2},
{wings_file,import,3},
{wings_plugin,command,3},
{wings,do_command_1,2}|
more]}}

Any tips?

Daniel

:smiley: w00t w00t :smiley:

Awsome ! Maddning thankyou 's !!!

CEK You hear this ! Full Import Export !!!

Thankyou JMS And Theeth !!!

finaly … A real UV editor though not in blender.

ok i’m done ^o^ ^v^

finaly after mh nearly 3 years :slight_smile:

hey teeth thankx a lot for the scripting.
i checked the scripting and tried to understand what
you changed but well i am not a programmer.

but anyway thankx a lot!!!

yes youngbatcat finaly am very happy and the script works very fine and i can exchange my work very fine between blender carrara and pixels.

Just a word:
I do not use the same script as theeth
but an another one yet corrected of 1 or
2 errors in import part . You can find this
script here :
http://www.zoo-logique.org/3D.Blender/zip/obj-io-modif.zip

and the new one:
http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif228.py

just an url:
http://www.uvmapper.com/

Your new obj_io_modif228.py

is giving me

Using a clean Global Dictionary.
Run Python script “obj_io_modif228.py” …
File “<string>”, line 1002
for v_old in NewVertexList:
^
IndentationError: expected an indented block

Just downloaded and tested no error on my side (win32).
Perhaps a problem with Mac Blender/Python Editor…

if you can find a moment to test this one:
http://jmsoler.free.fr/util/blenderfile/py/obj_io_modif228.zip

It works. Yay . I can’t throughly test it yet, BuT I am also testing for the PovAnim,

^v^