FBX won't export if material has a mapping node #69526

Closed
opened 2019-09-05 10:56:46 +02:00 by Juan Manuel Lynch · 6 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1060 3GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60

Blender Version
Broken: version: 2.81 (sub 8), branch: master, commit date: 2019-09-05 02:56, hash: blender/blender@6fc6f2504d
Worked: (optional)

Short description of error
Trying to export an fbx with a material using the mapping node on "texture" mode gives this error.

Traceback (most recent call last):
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\__init__.py", line 617, in execute
    return export_fbx_bin.save(self, context, **keywords)
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3194, in save
    ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3090, in save_single
    fbx_objects_elements(root, scene_data)
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2918, in fbx_objects_elements
    fbx_data_texture_file_elements(objects, blender_tex_key, scene_data)
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1428, in fbx_data_texture_file_elements
    elem_props_template_set(tmpl, props, "p_vector_3d", b"Translation", tex.translation)
  File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\modules\bpy_extras\node_shader_utils.py", line 753, in translation_get
    return self.node_mapping.translation if self.node_mapping is not None else Vector((0.0, 0.0, 0.0))
AttributeError: 'ShaderNodeMapping' object has no attribute 'translation'

location: <unknown location>:-1

Exact steps for others to reproduce the error

open blender and use default cube

add new material to cube

add a standard image configuration using the addon "node wrangler" (ctrl + t)

select an image for your texture node

change the mapping node from "point" to "texture" mode

try to export the cube

error pops up

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1060 3GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60 **Blender Version** Broken: version: 2.81 (sub 8), branch: master, commit date: 2019-09-05 02:56, hash: `blender/blender@6fc6f2504d` Worked: (optional) **Short description of error** Trying to export an fbx with a material using the mapping node on "texture" mode gives this error. ``` Traceback (most recent call last): File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\__init__.py", line 617, in execute return export_fbx_bin.save(self, context, **keywords) File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3194, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3090, in save_single fbx_objects_elements(root, scene_data) File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2918, in fbx_objects_elements fbx_data_texture_file_elements(objects, blender_tex_key, scene_data) File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1428, in fbx_data_texture_file_elements elem_props_template_set(tmpl, props, "p_vector_3d", b"Translation", tex.translation) File "C:\Users\Juan\Downloads\Blender_Version_Manager_v1.5.0_Win_x64\Git-6fc6f2504dfd-05-Sep-02-56\2.81\scripts\modules\bpy_extras\node_shader_utils.py", line 753, in translation_get return self.node_mapping.translation if self.node_mapping is not None else Vector((0.0, 0.0, 0.0)) AttributeError: 'ShaderNodeMapping' object has no attribute 'translation' location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** open blender and use default cube add new material to cube add a standard image configuration using the addon "node wrangler" (ctrl + t) select an image for your texture node change the mapping node from "point" to "texture" mode try to export the cube error pops up

Added subscriber: @JuanManuelLynch

Added subscriber: @JuanManuelLynch
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

I can get the error to pop up for Vector and Normal [translation/location entries are dynamically removed from the node then].
Texture mode has the entry though... I guess you are talking about that?

Anyways, we should check for that...

I can get the error to pop up for `Vector` and `Normal` [translation/location entries are dynamically removed from the node then]. Texture mode has the entry though... I guess you are talking about that? Anyways, we should check for that...
Member

In #69526#769774, @lichtwerk wrote:
I can get the error to pop up for Vector and Normal [translation/location entries are dynamically removed from the node then].
Texture mode has the entry though... I guess you are talking about that?

Scratch that, it is always erroring since blender/blender@baaa89a0bc, lets see how to get stuff from python then...

> In #69526#769774, @lichtwerk wrote: > I can get the error to pop up for `Vector` and `Normal` [translation/location entries are dynamically removed from the node then]. > Texture mode has the entry though... I guess you are talking about that? Scratch that, it is always erroring since blender/blender@baaa89a0bc, lets see how to get stuff from python then...
Member

There is still the problem of missing min/max which needs a dev decission.
Will put on High meanwhile...

There is still the problem of missing `min`/`max` which needs a dev decission. Will put on High meanwhile...

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Bastien Montagne self-assigned this 2019-09-08 23:44:46 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#69526
No description provided.