i have written a python script that fixes the static models (non animated), so they can be imported into blender 2.54. just copy all dae and dds files into a directory and run this script (commandline python scriptname.py) within the same directoy.
# fixscript
filename = "celt_barge-orig.dae"
import xml.dom import os from xml.dom.minidom import parse
def printAttributes(child): if child.hasAttributes(): if child.attributes: for attrKey in child.attributes.keys(): print "- attrKey:", attrKey, "attrValue:", child.attributes[attrKey].value #pass
def recurse(child): global currentEffectId, currentProfile, currentTechnique, currentMaterial global hasAddedSurfaceAndSampler, dom1 #print "type:", child.nodeType, "name:", child.nodeName, "value:", child.nodeValue if child.nodeType != 3: #printAttributes(child) pass
if not hasAddedSurfaceAndSampler: if child.nodeName == 'effect': # remember current effect id #print "found effect", child currentEffectId = child.attributes['id'].value if child.nodeName == 'profile_COMMON': #print "found profile", child currentProfile = child if child.nodeName == 'technique': #print "found technique", child currentTechnique = child
Model Source Files?
in Game Development & Technical Discussion
Posted
i have written a python script that fixes the static models (non animated), so they can be imported into blender 2.54. just copy all dae and dds files into a directory and run this script (commandline python scriptname.py) within the same directoy.