Finding palettes

Finding palettes
 1# This example finds all palettes whose name begins
 2# with "Cut" in the active drawing and displays
 3# the names of the found palettes in the output toolbox
 4
 5impact.gui.output_toolbox.clear()
 6
 7pals = impact.active_drawing.palettes.find_palettes("^Cut")
 8
 9# check that some palettes were found and output their names
10if pals:
11    for pal in pals:
12        impact.gui.output_toolbox.add("Palette: " + pal.full_name)