Is there a limit for how big a stringstream in mxs can be?
Im passing camera animation from a database to mxs over COM in the following format (frame,matrix,fov)
2f
(matrix3 [0.707107,-0.707107,0] [0.353553,0.353553,0.866026] [-0.612372,-0.612373,0.5] [-153.093,-153.093,125])
45.0
here’s the python bit that sends the retrieved string to max
CamOps.mxsc('disableSceneRedraw()')
CamOps.mxsc('try delete (execute "$'+sho+'_SQL_Camera") catch()')
CamOps.mxsc('try flush sstream catch()')
CamOps.mxsc('sstream ="'+retrieve[5]+'"')
CamOps.mxsc('MaxCameraOps.camtomax sstream')
CamOps.mxsc('$SQL_Camera.name ="'+sho+'_SQL_Camera"')
CamOps.mxsc('select(execute "$'+sho+'_SQL_Camera")')
CamOps.mxsc('viewport.setCamera (execute "$'+sho+'_SQL_Camera")')
CamOps.mxsc('enableSceneRedraw()')
The code works fine up to around 110 frames. Then it crashes max everytime.
I’ve tried expanding mxs memory to 256mb to no avail.
Is this COM related, a stringstream maximum length issue(which is something like 38000 characters for say 300f of animation), or am i missing something?
Help = bestest