Export fbx from Maya and import to blender. #79686

Closed
opened 2020-08-10 13:08:43 +02:00 by 肖行武 · 11 comments

When I export FBX from Maya and import it to blender. There is some error that happened when I selected Import User Properties in the import panel. This error will cause materials and textures lost in FBX files.

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute
  if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2813, in load
  _(); del _
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2807, in _
  root_helper.build_hierarchy(fbx_tmpl, settings, scene, view_layer)
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2242, in build_hierarchy
  child.build_hierarchy(fbx_tmpl, settings, scene, view_layer)
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2233, in build_hierarchy
  child.build_hierarchy(fbx_tmpl, settings, scene, view_layer)
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2229, in build_hierarchy
  obj = self.build_node_obj(fbx_tmpl, settings)
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2041, in build_node_obj
  blen_read_custom_properties(self.fbx_elem, obj, settings)
File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 331, in blen_read_custom_properties
  prop_name, prop_value = item.split('=', 1)

ValueError: not enough values to unpack (expected 2, got 1)

location: :-1

When I export FBX from Maya and import it to blender. There is some error that happened when I selected Import User Properties in the import panel. This error will cause materials and textures lost in FBX files. Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2813, in load _(); del _ File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2807, in _ root_helper.build_hierarchy(fbx_tmpl, settings, scene, view_layer) File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2242, in build_hierarchy child.build_hierarchy(fbx_tmpl, settings, scene, view_layer) File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2233, in build_hierarchy child.build_hierarchy(fbx_tmpl, settings, scene, view_layer) File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2229, in build_hierarchy obj = self.build_node_obj(fbx_tmpl, settings) File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 2041, in build_node_obj blen_read_custom_properties(self.fbx_elem, obj, settings) File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_scene_fbx\import_fbx.py", line 331, in blen_read_custom_properties prop_name, prop_value = item.split('=', 1) ``` ValueError: not enough values to unpack (expected 2, got 1) location: <unknown location>:-1
Author

Added subscriber: @xxwlzfb

Added subscriber: @xxwlzfb
肖行武 changed title from export fbx from Maya and import to blender. to Export fbx from Maya and import to blender. 2020-08-10 13:08:58 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Please provide the FBX file that causes this, thx.

Please provide the FBX file that causes this, thx.
Author

In #79686#993843, @lichtwerk wrote:
Please provide the FBX file that causes this, thx.

Sorry. FBX files are absolutely secret. So I can't provide it.

> In #79686#993843, @lichtwerk wrote: > Please provide the FBX file that causes this, thx. Sorry. FBX files are absolutely secret. So I can't provide it.
Member

Seems like there is a '=' missing in the definition of that custom property from Maya.
Can you try to export something sharable [Cube, whatever...] with such a custom property on it from Maya and see if that also fails?

If we cannot get our hands on something reproducable, I am afraid there is no way we can help.

Seems like there is a '=' missing in the definition of that custom property from Maya. Can you try to export something sharable [Cube, whatever...] with such a custom property on it from Maya and see if that also fails? If we cannot get our hands on something reproducable, I am afraid there is no way we can help.

Added subscriber: @developernc

Added subscriber: @developernc

Are you exporting morph targets from Maya and trying to import them into Blender? This can cause that error and prevent materials from being linked in your fbx import.

Are you exporting morph targets from Maya and trying to import them into Blender? This can cause that error and prevent materials from being linked in your fbx import.

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Bastien Montagne self-assigned this 2020-09-24 11:12:14 +02:00

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#79686
No description provided.