In your case, each component is positioned are the same position as the start node of each path. So, the script would iterate over all paths and create a list of start node positions. Then, delete all paths and place pixel components for each position in the just-created list.