- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
local conditionFilePath = @"D:\conditionscel.xlsx"
Xlsx = CreateOLEObject "Excel.Application"
Xlsx.application.Workbooks.open(conditionFilePath)
***------ error ------*****
-- Security Exception: MAXScript command embedded in the current scene could be unsafe and its execution has been blocked for the current 3ds Max session: createOLEObject "Excel.Application"
***------ error ------*****
Seems since max 2022 , The Safe Scene Script Execution settings can be found in the Security tab of the Preferences dialog The commands being blocked fall into these categories:
1) Maxscript system commands: these are commands that allow access to resources outside the 3ds Max scene, such as file system, process execution, network and internet. Examples include DosCommand, ShellLaunch, createOLEObject, LoadDllsFromDir.
I have turned off the anti-virus security tool function that comes with Max, but the error still occurs. Is there any solution. Two aspects: first, is there any modification of certain settings that can allow max2023 to successfully call this command; second, is there any other way to read excel data in max. ps: I read excel data for project specifications, usually by storing string strings in the shell to limit units or coordinates or numbers. My maxscript can run normally in max2017. But max2023 will report an error in this line. In fact, there are other errors reported, that is, the plug-in UI interface calls DoNet, and the UI cannot be displayed unless the anti-virus is turned off. But after turning off the anti-virus, excel still cannot be read in max2023.
Thank you everyone, please help me!
Solved! Go to Solution.