Total beginner who needs some help importing

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Struders
Posts: 1
Joined: Tue Jul 31, 2012 9:10 pm
Location: United Kingdom

Total beginner who needs some help importing

Postby Struders » Tue Jul 31, 2012 9:32 pm

Hello all

I've got an a load of text files I'm trying to import into blender.

At first I thought writing a simple importer shouldn't be too difficult but quickly realised I was out my depth having only a bit of VB knowledge.

So I thought I'ld have a look at the obj importer as I know the obj's are text biased and just adapt that. But I am so out of my depth it untrue!

any help would be massively appreciated!

Code: Select all

S0B ID = BS09
FileType 0
Name: Objects\level3\crate01.s01
Num Verts: 8
v: -31.72589 -2E-06 -31.72589
v: 31.72589 0 -31.72589
v: -31.72589 63.45177 -31.72589
v: 31.72589 63.45177 -31.72589
v: -31.72589 3E-06 31.72589
v: -31.72589 63.45177 31.72589
v: 31.72588 5E-06 31.72589
v: 31.72589 63.45177 31.72589
Num Normals: 16
: 0 0 -1
Vertex Index: 1
: 0 0 -1
Vertex Index: 0
: 0 0 -1
Vertex Index: 3
: 0 0 -1
Vertex Index: 2
: -0.447214 -0.894427 0
Vertex Index: 0
: -0.894427 -0.447214 0
Vertex Index: 4
: -0.894427 0.447214 0
Vertex Index: 2
: -0.447214 0.894427 0
Vertex Index: 5
: 0 0 1
Vertex Index: 4
: 0 0 1
Vertex Index: 6
: 0 0 1
Vertex Index: 5
: 0 0 1
Vertex Index: 7
: 0.447214 -0.894427 0
Vertex Index: 6
: 0.894427 -0.447214 0
Vertex Index: 1
: 0.894427 0.447214 0
Vertex Index: 7
: 0.447214 0.894427 0
Vertex Index: 3
Num Blocks: 1
Num Anim Frames: 0
PerInstanceInt[0] = 0
PerInstanceInt[1] = 10
PerInstanceInt[2] = 0
PerInstanceInt[3] = 0
PerInstanceInt[4] = 0
PerInstanceInt[5] = 0
PerInstanceInt[6] = 0
PerInstanceInt[7] = 0
PerInstanceInt[8] = 0
PerInstanceInt[9] = 0
PerInstanceInt[10] = 0
PerInstanceInt[11] = 0
PerInstanceInt[12] = 0
PerInstanceInt[13] = 0
PerInstanceInt[14] = 0
PerInstanceInt[15] = 0
PerInstanceInt[16] = 0
PerInstanceInt[17] = 0
PerInstanceInt[18] = 0
PerInstanceInt[19] = 0
PerInstanceInt[20] = 0
PerInstanceInt[21] = 0
PerInstanceInt[22] = 0
PerInstanceInt[23] = 0
PerInstanceInt[24] = 0
PerInstanceInt[25] = 0
PerInstanceInt[26] = 0
PerInstanceInt[27] = 0
PerInstanceInt[28] = 0
PerInstanceInt[29] = 0
PerInstanceInt[30] = 0
PerInstanceInt[31] = 0
PerInstanceInt[32] = 0
PerInstanceInt[33] = 0
PerInstanceInt[34] = 0
PerInstanceInt[35] = 0
PerInstanceInt[36] = 0
PerInstanceInt[37] = 0
PerInstanceInt[38] = 0
PerInstanceInt[39] = 0
PerInstanceInt[40] = 0
PerInstanceInt[41] = 0
PerInstanceInt[42] = 0
PerInstanceInt[43] = 0
PerInstanceInt[44] = 0
PerInstanceInt[45] = 0
PerInstanceInt[46] = 0
PerInstanceInt[47] = 0
PerInstanceInt[48] = 0
PerInstanceInt[49] = 0
PerInstanceInt[50] = 0
PerInstanceInt[51] = 0
PerInstanceInt[52] = 0
PerInstanceInt[53] = 0
PerInstanceInt[54] = 0
PerInstanceInt[55] = 0
PerInstanceInt[56] = 0
PerInstanceInt[57] = 0
PerInstanceInt[58] = 0
PerInstanceInt[59] = 0
PerInstanceInt[60] = 0
PerInstanceInt[61] = 0
PerInstanceInt[62] = 0
PerInstanceInt[63] = 0
PerInstanceFloat[0] = 0
PerInstanceFloat[1] = 0
PerInstanceFloat[2] = 0
PerInstanceFloat[3] = 0
PerInstanceFloat[4] = 0
PerInstanceFloat[5] = 0
PerInstanceFloat[6] = 10
PerInstanceFloat[7] = 0
PerInstanceFloat[8] = 0
PerInstanceFloat[9] = 0
PerInstanceFloat[10] = 0
PerInstanceFloat[11] = 0
PerInstanceFloat[12] = 0
PerInstanceFloat[13] = 0
PerInstanceFloat[14] = 0
PerInstanceFloat[15] = 0
PerInstanceFloat[16] = 0
PerInstanceFloat[17] = 0
PerInstanceFloat[18] = 0
PerInstanceFloat[19] = 0
PerInstanceFloat[20] = 0
PerInstanceFloat[21] = 0
PerInstanceFloat[22] = 0
PerInstanceFloat[23] = 0
PerInstanceFloat[24] = 0
PerInstanceFloat[25] = 0
PerInstanceFloat[26] = 0
PerInstanceFloat[27] = 0
PerInstanceFloat[28] = 0
PerInstanceFloat[29] = 0
PerInstanceFloat[30] = 0
PerInstanceFloat[31] = 0
PerInstanceFloat[32] = 0
PerInstanceFloat[33] = 0
PerInstanceFloat[34] = 0
PerInstanceFloat[35] = 0
PerInstanceFloat[36] = 0
PerInstanceFloat[37] = 0
PerInstanceFloat[38] = 0
PerInstanceFloat[39] = 0
PerInstanceFloat[40] = 0
PerInstanceFloat[41] = 0
PerInstanceFloat[42] = 0
PerInstanceFloat[43] = 0
PerInstanceFloat[44] = 0
PerInstanceFloat[45] = 0
PerInstanceFloat[46] = 0
PerInstanceFloat[47] = 0
PerInstanceFloat[48] = 0
PerInstanceFloat[49] = 0
PerInstanceFloat[50] = 0
PerInstanceFloat[51] = 0
PerInstanceFloat[52] = 0
PerInstanceFloat[53] = 0
PerInstanceFloat[54] = 0
PerInstanceFloat[55] = 0
PerInstanceFloat[56] = 0
PerInstanceFloat[57] = 0
PerInstanceFloat[58] = 0
PerInstanceFloat[59] = 0
PerInstanceFloat[60] = 0
PerInstanceFloat[61] = 0
PerInstanceFloat[62] = 0
PerInstanceFloat[63] = 0
ObjectSize 54.95085
Min Vertex: -31.72589 -31.72589 -31.72589
Max Vertex: 31.72589 31.72589 31.72589
Transform Matrix Offset: 0 -31.72589 0
Bounding Centre Offset: 0 9.536743E-07 0
Bounding Box extents: 31.72589 31.72589 31.72589
Small bounding box scale: 15.76 15.76 15.76
Reciprical Bounding Box Extents: 0.03152 0.03152 0.03152
Bounding Sphere Radius 54.95085
bumpMapValid 0
textureMapValid 1
environmentMapValid 0
TFACE: Main Model: numTextureBlocks 1
TFACE: Main Model: numQuads 6
TFACE: Main Model: numTris 0
Block[0] blockFirstQuad 0
Block[0] blockNumQuads 6
Block[0] blockFirstTri 0
Block[0] blockNumTris 0
Vertex Indices 0, 1, 2, 3
UV0: 0.326267 0.151376
UV1: 0.223507 0.151376
UV2: 0.326267 0.053402
UV3: 0.223507 0.053402
Glow 0
Opacity 1
Transparency Type 1
Vertex Indices 4, 5, 6, 7
UV0: 0.223507 0.151376
UV1: 0.124274 0.151376
UV2: 0.223507 0.053402
UV3: 0.124274 0.053402
Glow 0
Opacity 1
Transparency Type 1
Vertex Indices 8, 9, 10, 11
UV0: 0.326267 0.151376
UV1: 0.223507 0.151376
UV2: 0.326267 0.053402
UV3: 0.223507 0.053402
Glow 0
Opacity 1
Transparency Type 1
Vertex Indices 12, 13, 14, 15
UV0: 0.223507 0.151376
UV1: 0.124274 0.151376
UV2: 0.223507 0.053402
UV3: 0.124274 0.053402
Glow 0
Opacity 1
Transparency Type 1
Vertex Indices 14, 15, 7, 6
UV0: 0.223507 0.151376
UV1: 0.124274 0.151376
UV2: 0.223507 0.053402
UV3: 0.124274 0.053402
Glow 0
Opacity 1
Transparency Type 1
Vertex Indices 5, 4, 12, 13
UV0: 0.223507 0.151376
UV1: 0.124274 0.151376
UV2: 0.223507 0.053402
UV3: 0.124274 0.053402
Glow 0
Opacity 1
Transparency Type 1
MaterialName: l3_specific.tif
TransType 1
FirstQuad 0
NumQuads 6
FirstTri 0
NumTris 0
BlockName: Crate01
Num: 0
:0 1 0 0 0.943633
:1 0 1 0 0.945878
:2 0 0 1 1.401298E-45
:T 0 -31.72589 0 4.624285E-44
Size: 77.71223
FirstVert: 0
NumVerts: 8
First Normal: 0
Num Normals: 16
MaterialName: l3_specific.tif
Num LODs 0

Return to “Python”

Who is online

Users browsing this forum: No registered users and 1 guest