Softimage SDK Programmer's Guide > Plug-in Development > Selection > Finding Out What's Currently Selected >

# Getting the Current Selection Filter

- Use the Selection.Filter or Selection::GetFilter property:

    // C++ API
    Selection sel( Application().GetSelection() );
    Filter myFilter = sel.GetFilter();

    // C#
    CXSIApplication app = new CXSIApplication();
    Selection sel = app.Selection;
    Filter myFilter = sel.Filter;

    // JScript
    var sel = Selection;
    var myFilter = sel.Filter;

    ' VBScript
    set sel = Selection
    set myFilter = sel.Filter

    # Python
    sel = Application.Selection
    myFilter = sel.Filter

    # Perl
    my $sel = $Application->Selection;
    my $myFilter = $sel->Filter;

Related Scripting Commands

- SelectFilter, SelectEdgeFilter, SelectObjectFilter, SelectPolygonFilter, SelectSampledPointFilter, SelectVertexFilter

- SetEdgeSelectionFilter, SetPointSelectionFilter, SetPolygonSelectionFilter, SetSampleSelectionFilter