|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: A dash [-] in material names is invalid » » » » Post: A dash [-] in material names is invalid |
Print at Dec 19, 2025, 11:48:56 PM |
| Posted by Keet at Jun 4, 2024, 5:42:00 PM |
|
A dash [-] in material names is invalid I created a part for a bigger model in Blender and gave it the material name "Filler30dg-01". Unfortunately when I import the part in Sweet Home 3D the material name is changed to "1". (When a material name is invalid the group/object name is used for the material name, possibly with an added "_1" if the same name would occur. That is where the "1" came from.) I imported the same part in Blender with the the material name still "Filler30dg-01" and it is imported with the correct material name (with the "-"). It seems that the Sweet Home 3D importer has a problem with the dash which causes it to regard the material name invalid where Blender has no such problem. Removing the "-" from the material name solved this and when imported in Sweet Home 3D the correct name "Filler30dg01" is set as in the obj/mtl files. I searched for the naming conventions for MTL material names but the only thing I could find is Names may be any length but cannot include blanks. Underscores may be used in material names. Numbers are no problem, you can even use only numbers instead of string names. For Sweet Home 3D: When defining new material names stick to letters, numbers, and underscores. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Dec 19, 2025, 11:48:56 PM |