def convertToTransformedPaths(dictionary):
 if ((dictionary.__class__ == Vector3) or (dictionary.__class__.__name__ == 'Vector3Index')):
  return
 keys = getKeys(dictionary)
 if (keys == None):
  return
 for key in keys:
  value = dictionary[key]
  if (value.__class__.__name__ == 'XMLElement'):
   if (value.object != None):
    dictionary[key] = value.object.getTransformedPaths()
  else:
   convertToTransformedPaths(dictionary[key])

def convertToTransformedPaths ( dictionary ) : if ( ( dictionary . __class__ == Vector3 ) or ( dictionary . __class__ . __name__ == 'Vector3Index' ) ) : return keys = getKeys ( dictionary ) if ( keys == None ) : return for key in keys : value = dictionary [ key ] if ( value . __class__ . __name__ == 'XMLElement' ) : if ( value . object != None ) : dictionary [ key ] = value . object . getTransformedPaths ( ) else : convertToTransformedPaths ( dictionary [ key ] )
recursively convert any xmlelements to paths .