Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maya 2020 OBJ problem

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
DGFA_maya
6925 Views, 7 Replies

Maya 2020 OBJ problem

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

7 REPLIES 7
Message 2 of 8
zewt
in reply to: DGFA_maya

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.

 

Message 3 of 8
zewt
in reply to: zewt

Hmm, nevermind, it looks like that's fixed.  If you're allowed to upload the OBJ file I'll take a look at it.

 

Message 4 of 8
DGFA_maya
in reply to: zewt

Hi,

 

here are one of the obj files.

Hope you can recognize the problem.

 

Best,

Dag

Message 5 of 8
zewt
in reply to: DGFA_maya

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.

 

Message 6 of 8
mspeer
in reply to: zewt

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

Message 7 of 8
zewt
in reply to: mspeer

It should warn about it (which I don't think it did before), but this is just a bug...

 

Message 8 of 8
zewt
in reply to: mspeer

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.

Post to forums  

Autodesk Design & Make Report