is there an why to add a selection to an array then remove inhirit scale form the children?
sure there is, try this:
for obj in selection do setInheritanceFlags obj #{1…6}
this will remove the flags for selected objects