Smd Classes (How it all goes together)

class valvesmd.SmdRoot(data={})[source]
__init__(data={})[source]

Creates an empty instance of Smd.

Parameters:

data (dict) – Dict data to be loaded in this instance

version
Type:

int

nodes
Type:

list[SmdNode]

skeleton
Type:

list[SmdKeyframe]

triangles
Type:

list[SmdTriangle]

class valvesmd.SmdNode(data={})[source]
__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

id
Type:

int

name
Type:

str

parent_id
Type:

int

class valvesmd.SmdKeyframe(data={})[source]
__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

frame
Type:

int

poses
Type:

list[SmdBonePose]

class valvesmd.SmdBonePose(data={})[source]
__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

boneid
Type:

int

position
Type:

tuple(float, float, float)

rotation
Type:

tuple(float, float, float)

class valvesmd.SmdTriangle(data={})[source]
__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

material
Type:

str

verts
Type:

list[SmdVert]

class valvesmd.SmdVert(data={})[source]
__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

parent_boneid
Type:

int

position
Type:

tuple(float, float, float)

normal
Type:

tuple(float, float, float)

uv
Type:

tuple(float, float)

Type:

list[SmdLink]

__init__(data={})[source]
Parameters:

data (dict) – Dict data to be loaded in this instance

boneid
Type:

(int)

weight
Type:

(float)