ZBrushCentral

Question:Export .ma

I’m facing an issue where, when I use this ZScript to export a .ma file, the first export results in a file that’s only 1KB in size and doesn’t export correctly. However, if I manually export the file once using the Export button, the script works perfectly for subsequent exports. What could be causing this problem, and how can I ensure that the script works correctly on the first attempt?

[IButton,"testExportFileMaya","",
[FileNameSetNext, "C:\\ZMay_temp\\exported.ma"]
[IPress, Tool:Export]
,,1,,,25]