Importing Second Life Avatar Obj. for baking clothes

:frowning: Ive been trying for over two hours now to “import” not “open” the Second LIfe Avatar mesh (located here —>) http://secondlife.com/community/avatar.php into blender by using various scripts. I just want to bake a clothing template onto the mesh for realistic lighting. I am no scripter, and I have no idea what im doing. Everytime i enter a particular script code thingy i get error msgs. For ex. I’m mainly entering this script code, which could basically be in chinese and have the same meaning to me (i can’t speak, read, or understand a lick of chinese)* :

import Blender
def import_obj(path):
Blender.Window.WaitCursor(1)
name = path.split(’\’)[-1].split(’/’)[-1]
mesh = Blender.NMesh.New( name ) # create a new mesh

parse the file

file = open(path, ‘r’)
for line in file.readlines():
words = line.split()
if len(words) == 0 or words[0].startswith(’#’):
pass
elif words[0] == ‘v’:
x, y, z = float(words[1]), float(words[2]), float(words[3])
mesh.verts.append(Blender.NMesh.Vert(x, y, z))
elif words[0] == ‘f’:
faceVertList = []
for faceIdx in words[1:]:
faceVert = mesh.verts[int(faceIdx)-1]
faceVertList.append(faceVert)
newFace = Blender.NMesh.Face(faceVertList)
mesh.addFace(newFace)

link the mesh to a new object

ob = Blender.Object.New(‘Mesh’, name) # Mesh must be spelled just this–it is a specific type
ob.link(mesh) # tell the object to use the mesh we just made
scn = Blender.Scene.GetCurrent()
for o in scn.getChildren():
o.sel = 0

scn.link(ob) # link the object to the current scene
ob.sel= 1
ob.Layers = scn.Layers
Blender.Window.WaitCursor(0)
Blender.Window.RedrawAll()

Blender.Window.FileSelector(import_obj, ‘Import’)

I am sooo sorry if i posted this in the wrong section, but i spent 20mins trying to find the “support” section with no luck. im so comp dumb these days…please if you could help. and explain things in the most simple form possible i would greatly appreciate it. I can’t find a step by step tut ANYWHERE on the web for importing objs into blender. myzip keeps unzipping them also, with no luck. please help

Me too! There has to be a way and I’m guessing its probably easier than I’ve been thinking…

blender 2.49, works just fine for me.

I think you are going about this all wrong. The SL file contains a .OBJ file which is supported in blender. You just go File --> Import --> Wavefront (.OBJ). then go to the directory you extracted from the zip file.

Try this .Blend.

I separated the 3 UV maps so you can see them clearly. (Head, Shirt, Pants basically.)

I’m new to 2nd Life… 1 day old to be exact. So, I haven’t even exported much. But a friend gave me some textures and I just got a avatar.blend file. Mainly I want to used blender for texture painting and previewing. Looks promising. There’s a bit of a learning curve, but after one day, I’m pleased with my results. Any Blender/2nd Life tutorials, articles, or resources would be much appreciated.

SL Clothing templates.
http://www.annotoole.com/CMFF/

Thanks a mil!

I used a Second Life (SL) Mesh to paint a UV texture. It really didn’t come out well. by the time it wasapplied to my SL avatar there was significant distortion to the suit. it looked really wrinkled.

I have more success using the UV layout that @WiKKiDWidgets provided, in photoshop. Blender’s Texture paint feature was helpful in blending seams and adding some shading. Also, it served as an ok previewer. There’s a free previewer that a friend recommended to me SLCP:
https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=158462

These previews won’t look exactly like the final result, but they’re awesome for lining up seams and placement of texture. Here’s my avatar, Grey Kayor, in suit:http://farm5.static.flickr.com/4040/4265740795_fa435fbfbb_o.png
http://farm5.static.flickr.com/4001/4265740765_36b0517087_o.png
http://www.flickr.com/photos/johndelannoy/4265740795/
http://www.flickr.com/photos/johndelannoy/4265740765/

My previous .Blend file was the female model. Had a request for the male version. So here it is. Note that if you look at the UV map, you can see how clothing and skin are mapped to avatar’s in SL. You can download UV templates from here to assist with designing clothes and skin.

http://www.robinwood.com/Catalog/Technical/SL-Tuts/SLPages/AVUVTemplates.html