friendlysam.parts.Node.find

Node.find(name)

Try to find a part by name.

Searches among descendants_and_self, comparing the name. If there is exactly one match, it is returned.

Parameters:name – The name to search for.
Returns:attr:descendants_and_self.
Return type:A part named name, if one exists among
Raises:ValueError – If there is no match or several matches.