下面举例说明如何创建将哪些对象连接到哪些着色组的列表:
for ($SG in $listofShadinggroups) { string $connectedObjects[] = `sets -q $SG`; for ($connectedObject in $connectedObjects){ print ( $connectedObject + " is connected to " + $SG + " "); } }