   indata = fs.readFileSync source
   mkdirp.sync path.dirname(target)
   fs.writeFileSync target, indata
-
-sceneFiles = []
 
 outputFile = (file, data, notinscene) ->
 	unless notinscene

		data = JSON.stringify data, null, "\t"
	fs.writeFileSync file, data

convertColor = (hexColor) ->
	color =	for i in [1..7] by 2
		Math.round((parseInt hexColor.substr(i,2), 16)/2.55)/100

convertTextures = (material, textures) ->
	material.textures = []

					materials: ["materials/#{child.Material}.mat"]

		if child.MeshData?
			convertMeshData(child, entity, child.Type, compression)
			
		if parent
			entity.components.transform.parentRef = "entities/#{parent.name}.ent"
			
		entities.push entity
		if child.Children? then convertChildren(child.Children, entity, entities, compression)


# Main function
convert = (inputFile, outputPath, objectName) ->	
	file = path.resolve(inputFile)
	basePath = path.resolve(outputPath)
