This will label any dots to the same as the first higer level dot, with a label, found. So if you label the top of your pipe say 'Main Mattes' and have successive dots underneath, select all and run this, then all your dots are relabelled to match. Thanks to Frank for the 'getParentNode()' bit.
Section: Downloads | Category: NodeGraph | Date: Monday, 08 October 2012 | Hits: 172