[RNS]WEst.at
03-26-2009, 04:02 PM
Hey all,
I got a small problem here with my Maxscript in Max Design 2009 (actually its a really annyoing one).
I changed my exporter code, so that it don't use directly format to:<filestream> but instead uses a stringstream to buffer the data and write it at once to the disk.
The MaxScript Reference says that one can use the "format to:" function with all type of streams including a <StringStream> but actually I always get the following error:
Type error: to: requires character stream, got: StringStream
I looked around a while, but couldn't find anything useful on the net, maybe someone of you has an idea what can be wrong.
I got a small problem here with my Maxscript in Max Design 2009 (actually its a really annyoing one).
I changed my exporter code, so that it don't use directly format to:<filestream> but instead uses a stringstream to buffer the data and write it at once to the disk.
The MaxScript Reference says that one can use the "format to:" function with all type of streams including a <StringStream> but actually I always get the following error:
Type error: to: requires character stream, got: StringStream
I looked around a while, but couldn't find anything useful on the net, maybe someone of you has an idea what can be wrong.
