Hi,
I have an issue within Maya 2020 loading Obj files.
On loading I get this message:
file -import -type "OBJ" -ignoreVersion -ra true -mergeNamespacesOnClash true -namespace ":" -options "mo=0" -pr -importFrameRate true -importTimeRange "override" "/PATH/FILE.OBJ";
// Warning: line 0: Option "Use legacy vertex order" will only take effect when option "Multiple Objects" is enabled. //
// Error: line 0: Your OBJ file contains a line which is too long to be parsed. Please edit your obj file. //
// File read in 0.024 seconds.
// Error: line 0: Error reading file. //
This same file can be read by Mudbox, Zbrush, Maya 2018/2019.
Please fix this issue.
Best,
Dag
Solved! Go to Solution.
That's a bug in the OBJ importer that usually happens if there's a blank line at the end of the file. Try opening the OBJ in notepad and see if there's a blank line at the end to remove.
This OBJ has vertex color, which apparently Maya doesn't support. It's a confusing error (not sure why it doesn't just discard the data and print a warning). I assume you want the vertex color, though, I don't know if there's an easy way to import it from an OBJ. If you can export the files yourself you might have more luck with FBX, or maybe you can find a conversion tool.
Hi!
@zewt is correct.
Maya does not support OBJ with vertex colors. In previous Maya versions the extra information has just been skipped, but Maya 2020 is a bit more sensitive to incoming data, which is in general a good thing.
As vertex color is not part of the standard specification of the OBJ file, the application that created this fie should also have the possibility to create an OBJ without vertex colors.
If you want Maya to support vertex colors, please vote here:
https://forums.autodesk.com/t5/maya-ideas/import-vertex-color-from-obj-file-format/idi-p/7959348
Looks like this is fixed in 2020.1:
https://help.autodesk.com/view/MAYAUL/2020/ENU/?guid=Maya_ReleaseNotes_2020_1_release_notes_html
OBJ file fails to open or import if it has optional per-vertex color information MAYA-102931
Can't find what you're looking for? Ask the community or share your knowledge.