\\n'\nfor file in `find \"/path/to/files\" -type f -name \"*.mb\" -o -name \"*.ma\"`  \ndo\n/Applications/Autodesk/maya2020/Maya.app/Contents/bin/maya -batch -file \"$file\" -command \"evalDeferred (\\\"loadPlugin MayaScanner; MayaScan;\\\")\"\ndone\nIFS=\"$OIFS\"\u003c/pre\u003e   \n \u003col style=\"margin-left: 40px;\"\u003e\n \u003cli\u003eThis code must be saved as either a .BAT or .SH file, for Windows or Mac platforms respectively.\u003c/li\u003e\n \u003cli\u003eDirectory path must be complete to a folder collection of .MA or .MB files.\u003c/li\u003e\n \u003cli\u003e\"C:\\Program Files\\Autodesk\\Maya2020 (...)\" or \"Applications/Autodesk/maya2020 (...)\" must correctly point to the installation destination of Maya. The version of Maya intended to use must correlate to the designated install path.\u003c/li\u003e\n \u003c/ol\u003e \u003cbr\u003e\u003cb\u003eNote: T\u003c/b\u003ehe Maya Security Tool plugin must be installed and enabled within Maya already.\n \u003c/div\u003e\n \u003cdiv id=\"seealso\" class=\"adskkb_seealso\"\u003e\n \u003ch3\u003eSee Also:\u003c/h3\u003e\n \u003cul\u003e\n \u003cli\u003e\u003ca href=\"https://knowledge.autodesk.com/support/maya/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-diagnose-and-clean-Maya-ScriptExploit-issues.html\" target=\"_blank\"\u003eHow to diagnose and clean Maya ScriptExploit issues | Maya | Autodesk Knowledge Network\u003c/a\u003e\u003c/li\u003e\n \u003cli\u003e\u003ca href=\"https://knowledge.autodesk.com/support/maya/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-clear-Maya-ScriptExploit-using-a-Mel-Script.html\" target=\"_blank\"\u003eHow to clear Maya ScriptExploit using a Mel Script | Maya | Autodesk Knowledge Network\u003c/a\u003e\u003c/li\u003e\n \u003cli\u003e\u003ca href=\"https://apps.autodesk.com/MAYA/en/Detail/Index?id=8637238041954239715&appLang=en&os=Linux\" target=\"_blank\"\u003eSecurity Tools for Autodesk® Maya® 2020 - 2015 | Maya | Autodesk App Store\u003c/a\u003e\u003c/li\u003e\n \u003c/ul\u003e \u003cbr\u003e \n \u003c/div\u003e\n \u003cdiv id=\"products\" class=\"adskkb_products\"\u003e\n \u003ch3\u003eProducts:\u003c/h3\u003e Maya;\n \u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","publisher":"Autodesk","language":"english","releaseYear":"2025","lastUpdateDate":"2024-03-22 00:00:00","contentUrl":"https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-clean-multiple-files-with-the-Maya-Security-Tool.html","subSource":"FaqArticle","caasKey":"caas/sfdcarticles/sfdcarticles/How-to-clean-multiple-files-with-the-Maya-Security-Tool.html","sfdcId":"kA93g0000004JiA","upiLanguage":"ENU","productRelease":["Maya 2020","Maya 2022","Maya 2023","Maya 2024","Maya 2025"],"productLine":["Maya","Media & Entertainment Collection","Industry Collections"],"caseCount":"11","nodeId":"kA93g0000004JiA","caseId":["22221032","22099641","19631491","18951413","18756654","18018095","17867360","17702559","16695122","16695855","16597303"],"description":"Cleaning multiple files with the Maya Security Tool requires a script within the Maya prompt window.","knowledgeSource":"Technical Support","mediaType":["Text Only"],"audience":["User"],"versionNumber":"8","articleType":"FAQ","docnUrl":"How-to-clean-multiple-files-with-the-Maya-Security-Tool","versionId":"ka9Kf000000YFRCIA4","lastAttachedDate":"2024-04-24 00:00:00","articleNumber":"000400417","contactSupport":"\n\n\n\u003cdiv class=\"xfpage-content-container\"\u003e\n \n \u003cdiv class=\"root container responsivegrid\"\u003e\n\n \n \n \n \u003cdiv id=\"container-3acc490818\" class=\"cmp-container\"\u003e\n \n \u003cdiv class=\"flexible-text\"\u003e\u003cdiv id=\"flexible-text-106aeb187a\" class=\"pnl-ft dhig-theme--light dhig-py-8\" data-wat-content-type=\"panel\" data-wat-content-name=\"flexible text-only\" style=\"background-color: #f9f9f9;\"\u003e\n \u003cdiv class=\"page-container-wrapper\"\u003e\n \u003cdiv class=\"page-container\"\u003e\n \n \u003cdiv class=\"pnl-ft__heading lg:dhig-w-3/5\"\u003e\n\u003cdiv id=\"title-d8bb64ba85\" class=\"cmp-title \"\u003e\n \u003ch2 class=\"cmp-title__text dhig-typography-headline-medium\"\u003e\n Need help? Ask the Autodesk Assistant!\u003c/h2\u003e\n\u003c/div\u003e\n\n \n\n\u003c/div\u003e\n \u003cdiv class=\"md:dhig-flex\"\u003e\n \u003cdiv class=\"lg:dhig-w-3/5 md:dhig-w-2/3\"\u003e\n \n \u003cdiv class=\"dhig-mt-2 pnl-ft__subheading\"\u003e\n\u003cdiv id=\"text-f19f35bbbd\" class=\"cmp-text dhig-typography-body-copy-medium\"\u003e\n \u003cdiv class=\"cmp-text-editable cmp-text-editable_v2_see_more\"\u003e\n \u003cp\u003eThe Assistant can help you find answers or contact an agent.\u003c/p\u003e\n\n \n \u003c/div\u003e\n\u003c/div\u003e\n\n\n \n\n\u003c/div\u003e\n \n \u003cdiv class=\"dhig-mt-4 pnl-ft__cta-button\"\u003e\n\n\u003cdiv class=\"cmp-button__wrapper \" style=\"width: 100%;\"\u003e\n \n \u003ca class=\"cmp-button MuiButtonBase-root MuiButton-root MuiButton-contained cmp-button__row-reverse assistant-onclick assistant-loading Mui-disabled assistant-icon \" id=\"button-0ad54db111\" tabindex=\"0\" data-video-id=\"/content/autodesk/global/en/support/contact-support.html\" data-wat-loc=\"content\" data-wat-val=\"contact support\" data-wat-link=\"true\" href=\"/support/contact-support\"\u003e\n \n \n \n \u003cspan class=\"cmp-button__text MuiButton-label\"\u003eAsk the Assistant\u003c/span\u003e\n \n \u003cspan class=\"cmp-button__autodesk-assistant-icon\"\u003e\n \u003csvg class=\"dc-button-icon cmp-button__icon DhigSvgIcon\" width=\"20\" height=\"24\" viewBox=\"0 0 20 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\n \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.0695 5.51804C13.3073 5.89858 13.1916 6.39984 12.811 6.63763L1.33667 13.8076C0.956128 14.0454 0.454867 13.9297 0.217076 13.5491C-0.0207158 13.1686 0.0950095 12.6673 0.475555 12.4295L11.9499 5.25956C12.3305 5.02176 12.8317 5.13749 13.0695 5.51804ZM19.3549 5.68563C19.5927 6.06617 19.4769 6.56743 19.0964 6.80522L1.61542 17.7286C1.23487 17.9663 0.733609 17.8506 0.495817 17.4701C0.258026 17.0895 0.373751 16.5883 0.754297 16.3505L18.2353 5.42715C18.6158 5.18936 19.1171 5.30508 19.3549 5.68563ZM19.2572 9.84868C19.495 10.2292 19.3793 10.7305 18.9988 10.9683L17.2438 12.0649C16.8633 12.3027 16.362 12.187 16.1242 11.8064C15.8864 11.4259 16.0021 10.9246 16.3827 10.6868L18.1376 9.5902C18.5182 9.35241 19.0195 9.46813 19.2572 9.84868ZM19.7825 13.4903C20.0202 13.8709 19.9045 14.3721 19.524 14.6099L13.23 18.5428C12.8495 18.7806 12.3482 18.6649 12.1104 18.2843C11.8727 17.9038 11.9884 17.4025 12.3689 17.1647L18.6629 13.2318C19.0434 12.994 19.5447 13.1098 19.7825 13.4903ZM19.4431 17.6173C19.6809 17.9978 19.5652 18.4991 19.1847 18.7369L19.179 18.7404C18.7985 18.9782 18.2972 18.8625 18.0594 18.482C17.8216 18.1014 17.9373 17.6002 18.3179 17.3624L18.3235 17.3588C18.704 17.121 19.2053 17.2367 19.4431 17.6173Z\" fill=\"white\"/\u003e\n \u003cmask id=\"mask0_497_5061\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"5\" y=\"10\" width=\"13\" height=\"9\"\u003e\n \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.97302 18.149C5.73524 17.7685 5.85098 17.2672 6.23153 17.0294L16.3828 10.6866C16.7633 10.4488 17.2646 10.5646 17.5024 10.9451C17.7401 11.3257 17.6244 11.8269 17.2438 12.0647L7.09261 18.4075C6.71206 18.6453 6.2108 18.5296 5.97302 18.149Z\" fill=\"url(#paint0_linear_497_5061)\"/\u003e\n \u003c/mask\u003e\n \u003cg mask=\"url(#mask0_497_5061)\"\u003e\n \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.97302 18.1491C5.73524 17.7686 5.85098 17.2673 6.23153 17.0295L16.3828 10.6867C16.7633 10.449 17.2646 10.5647 17.5024 10.9452C17.7401 11.3258 17.6244 11.8271 17.2438 12.0648L7.09261 18.4076C6.71206 18.6454 6.2108 18.5297 5.97302 18.1491Z\" fill=\"black\"/\u003e\n \u003c/g\u003e\n \u003cdefs\u003e\n \u003clinearGradient id=\"paint0_linear_497_5061\" x1=\"16.3186\" y1=\"11.587\" x2=\"17.1031\" y2=\"15.8914\" gradientUnits=\"userSpaceOnUse\"\u003e\n \u003cstop stop-opacity=\"0.6\"/\u003e\n \u003cstop offset=\"0.5\" stop-opacity=\"0.25\"/\u003e\n \u003cstop offset=\"1\" stop-opacity=\"0.1\"/\u003e\n \u003c/linearGradient\u003e\n \u003c/defs\u003e\n \u003c/svg\u003e\n \u003c/span\u003e\n \u003c/a\u003e\n\n\u003c/div\u003e\n\n\n\u003c/div\u003e\n \u003c/div\u003e\n \n \u003cdiv class=\"lg:dhig-w-2/5 md:dhig-w-1/3 dhig-flex\"\u003e\n \n \u003chr class=\"MuiDivider-root MuiDivider-light MuiDivider-vertical\"/\u003e\n \u003cdiv class=\"md:dhig-my-2 md:dhig-ml-6 sm:dhig-my-8\"\u003e\n\u003cdiv id=\"text-31325da7b4\" class=\"cmp-text dhig-typography-body-copy-medium\"\u003e\n \u003cdiv class=\"cmp-text-editable cmp-text-editable_v2_see_more\"\u003e\n \u003cp\u003e\u003cb\u003eWhat level of support do you have?\u003c/b\u003e\u003c/p\u003e\n\u003cp\u003eDifferent subscription plans provide distinct categories of support. Find out the level of support for your plan.\u003c/p\u003e\n\u003cp\u003e\u003ca id=\"coral-id-694\" data-wat-link=\"true\" data-wat-val=\"view levels of support\" data-wat-loc=\"content\" class=\"MuiTypography-root MuiLink-root MuiLink-underlineHover\" href=\"/support/subscription-support\"\u003eView levels of support\u003c/a\u003e\u003c/p\u003e\n\n \n \u003c/div\u003e\n\u003c/div\u003e\n\n\n \n\n\u003c/div\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n \n \n \n \n \u003c/div\u003e\n \u003c/div\u003e\n\u003c/div\u003e\n\n\n \n\n\u003c/div\u003e\n\n \n \u003c/div\u003e\n\n\u003c/div\u003e\n\n\u003c/div\u003e\n"}}};