Append String Method Conserves Memory

MAXScript Language Improvements in 3ds Max 5

Append String

A new Append method has been added to the string value class. It lets you append to a strings in place without creating intermediate string copies in memory. This reduces memory usage significantly when building a large incremental string out of smaller strings, for example when creating dynamic rollouts.

In versions prior 3ds Max 5, using the addition to a string created intermediate copies which would remain in memory until the next garbage collection. When creating large dynamic rollout, it would be possible to exceed the MAXScript memory limit.

See Also