Messagebox contents don't fit

Messagebox contents don't fit

Anonymous
Not applicable
628 Views
3 Replies
Message 1 of 4

Messagebox contents don't fit

Anonymous
Not applicable

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...

0 Likes
629 Views
3 Replies
Replies (3)
Message 2 of 4

miauuuu
Collaborator
Collaborator

Which version of 3ds Max you use?

In 3ds max 2014 there is no problem with the size of the messagebox. Please see the image.

 

https://miauu-maxscript.com/
0 Likes
Message 3 of 4

Anonymous
Not applicable

3dsmax 2018 latest update. Could it also be operating system-specific? I'm on Win7.

0 Likes
Message 4 of 4

loliojohn87
Community Visitor
Community Visitor

Conduct extensive research to produce Content Writing precise, knowledgeable, and informative information. Use credible sources to support the claims you make.

0 Likes