nicholas_yue Posted September 25, 2021 Share Posted September 25, 2021 I would like my file chooser in my C++ SOP plugin to only show up certain file extensions. What is the recommended way ? Quote Link to comment Share on other sites More sharing options...
forever_kk Posted January 5, 2023 Share Posted January 5, 2023 static const char* theDsFile = R"THEDSFILE( { name parameters parm { name "shpfile" // Internal parameter name label "SHP File" // Descriptive parameter name for user interface type file default { "" } // Default for this parameter on new nodes parmtag { "autoscope" "0000000000000000" } parmtag { "filechooser_pattern" "*.shp" } parmtag { "import_token" "shp_file" } } } )THEDSFILE"; most important is "parmtag { "filechooser_pattern" "*.shp" }" you can change *.shp to any format you want Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.