def getIndexFromString(vtx):
	"""
	Get the index from a component string.
	
	:param str vtx: Path to component
	:return: Index of component string
    :rtype: int
	"""
	return int(vtx.split("[")[-1][:-1])