Messagebox contents don't fit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm writing a simple script, part of which is to check whether all materials are properly named. The ones that are not should come out as a message. I'm putting them in a multiline string and displaying later in a messagebox. However the messagebox gets incorrectly sized and some of the text simply doesn't fit! What am I doing wrong? The code is below:
fn CheckBadNames =
(
BadMaterials = #()
BadMatList = ""
for mat in scenematerials do
(
if (matchpattern mat.name pattern:"*material*") then
(
append BadMaterials mat
append BadMatList (mat.name + "\n")
)
)
if BadMaterials.count > 0 then
(
BadMatMessage = "These materials have bad names:\n" + BadMatList + "You better rename them before archiving"
)
messagebox BadMatMessage
)
And attached is the screenshot of how it looks in the end...