def getFromObjectOrXMLElement(xmlElement):
 xmlElementMatrix = None
 if (xmlElement.object != None):
  xmlElementMatrix = xmlElement.object.matrix4X4
 else:
  xmlElementMatrix = Matrix()
 return xmlElementMatrix.getFromXMLElement('matrix.', xmlElement)

def getFromObjectOrXMLElement ( xmlElement ) : xmlElementMatrix = None if ( xmlElement . object != None ) : xmlElementMatrix = xmlElement . object . matrix4X4 else : xmlElementMatrix = Matrix ( ) return xmlElementMatrix . getFromXMLElement ( 'matrix.' , xmlElement )
get matrix starting from the object if it exists .