Skip to content
Permalink
9bee05cdcc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (15 sloc) 474 Bytes
import xml.etree.ElementTree as ET
import ScriptScene
import ScriptProcessing
def extractScriptEntities(path, model):
tree = ET.parse(path)
root = tree.getroot()
script = ScriptProcessing.ScriptProcessing()
scenes = script.extractScenes()
sceneEntities = []
i = 0
for scene in root.iter('scene'):
sceneEntities.append(ScriptScene.ScriptScene())
sceneEntities[len(sceneEntities)-1].processScene(scene, scenes[i], model)
i = i+1
return sceneEntities