Here's a button which will do that.
Filtering is based on the Images and Movies file type groups, which you can edit via Settings > File Types.
(If Opus isn't in English, or the groups have been renamed, edit the 2nd last line of the script.)
Script by itself, for easier reading:
function OnClick(clickData)
{
var cmd = clickData.func.command;
cmd.deselect = false; // Prevent automatic deselection
cmd.ClearFiles();
DoFilter(cmd, clickData.func.sourcetab.lister.activetab);
if (clickData.func.sourcetab.lister.dual)
DoFilter(cmd, clickData.func.sourcetab.lister.desttab);
}
function DoFilter(cmd, tab)
{
cmd.SetSourceTab(tab);
cmd.RunCommand(tab.right ? "Set QUICKFILTER=grp:Movies" : "Set QUICKFILTER=grp:Images");
}
XML format button for easier using:
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Test JScript</label>
<icon1>#script</icon1>
<function type="script">
<instruction>@script JScript</instruction>
<instruction>function OnClick(clickData)</instruction>
<instruction>{</instruction>
<instruction> var cmd = clickData.func.command;</instruction>
<instruction> cmd.deselect = false; // Prevent automatic deselection</instruction>
<instruction> cmd.ClearFiles();</instruction>
<instruction> DoFilter(cmd, clickData.func.sourcetab.lister.activetab);</instruction>
<instruction> if (clickData.func.sourcetab.lister.dual)</instruction>
<instruction> DoFilter(cmd, clickData.func.sourcetab.lister.desttab);</instruction>
<instruction>}</instruction>
<instruction />
<instruction>function DoFilter(cmd, tab)</instruction>
<instruction>{</instruction>
<instruction> cmd.SetSourceTab(tab);</instruction>
<instruction> cmd.RunCommand(tab.right ? "Set QUICKFILTER=grp:Movies" : "Set QUICKFILTER=grp:Images");</instruction>
<instruction>}</instruction>
</function>
</button>