Question: Export script doesn't work: Nothing to do here, OBJ exported is included in

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Question: Export script doesn't work: Nothing to do here, OBJ exported is included in

Hi, I am trying to export a tool as ma file using zscript. But it seems it just overwrites the ma file with the text below:
"Nothing to do here, OBJ exported is included in ZBrush"
The code that I use is:
[FileNameSetNext,"C:\Users\Public\Pixologic\GoZProj ects\Default\pSphere2.ma"]
[IPress,Tool:Import]
...do some thing...
[FileNameSetNext, [FileNameGetLastUsed]]
[IPress,Tool:Export]

And I also found if I manually export the tool as ma file once, afterward the script works fine.

Just wondering if anyone has seen this problem before, and how can I solve it? It seems some global variable is not being set.