Gerber unfiltered fab layer creation

Basically this is meant as a successor of this thread: Gerber generation ".Fab" Layer .

Since a couple of weeks I have migrated from V8 to V9. What I’m encountering yet is the mess how a fab layer looks like in gerber output.

At least in V6 (where I could simply verify it because of presence on one of my older computers), you was able to apply a filter, just as shown here:

In the background, the layout canvas looks like in the gerber in V9 (in this case shown without filter according to having ticked active references AND values in appearence→objects).

According to the former thread, an alternative way to accomplish a clean fab layer with outline and reference only would be the application of a simple script:

import pcbnew as p
b=p.GetBoard()
for m in b.GetModules():
    m.Value().SetVisible(False)

I’d prefer to have the option set of former gerber options dialog be restored on V9 (at least the most relevant one: values).

EDIT: when trying this script, an error with GetModules() is reported.

Edit → Edit Text & Graphics Properties…

Thanks for this hint, but the disadvantage is that you also lose the temporary value pop up when you let a footprint highlight (hover - E, M, or whatever - e.g. click!).

I could apply this step for both sides just after saving the design; delete values; plot and finally exit without save. A bit cumbersome…