Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
脚本循环创建很多文件启动3D max脚本后只能创建499个文件。然后显示错误“运行时错误”。我可以更改此限制吗?
解决它的一种方法是首先使用 dos 命令功能创建文件。例如:
HiddenDosCommand "mkdir c:\\NewDir\\" HiddenDosCommand "type NUL > c:\\NewDir\\EmptyFile.txt"
将在该文件夹中创建一个新文件夹和一个新的空文件,然后您可以将该文件的路径存储在一个数组中。
然后在您的循环中,您通过文件路径数组指向路径,并将您的数据插入每个文件中。