Error when exporting model

Post Reply
proton
Posts: 5
Joined: 19 Jan 2021 16:39

Error when exporting model

#1 Post by proton » 06 Dec 2021 21:01

Hi, i am trying to export a model from blender and am getting the following error:

Code: Select all

ERROR   -  Unexpected 'TypeError' accured during batch export:
           Traceback (most recent call last):
             File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\operators\bases\export.py", line 184, in execute_export
               result = _export.batch_export(self, init_obj_list, name_suffix=ef_name_suffix, menu_filepath=menu_filepath)
             File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\__init__.py", line 95, in batch_export
               export_success = pix.export(filepath, name_suffix, root_object, game_object_list)
             File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\pix.py", line 196, in export
               export_success = _pit.export(*(in_args + trans_structs_args))
             File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\pit.py", line 386, in export
               _looks.apply_active_look(root_object)  # apply look manually, as active look setter method works only when user sets index from UI
             File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\internals\looks\__init__.py", line 115, in apply_active_look
               for prop in mat_data:
           TypeError: iter() returned non-iterator of type 'IDPropertyGroupViewKeys'


           ERROR SUMMARY:
           ================
           > Unexpected 'TypeError' accured during batch export:
             Traceback (most recent call last):
               File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\operators\bases\export.py", line 184, in execute_export
                 result = _export.batch_export(self, init_obj_list, name_suffix=ef_name_suffix, menu_filepath=menu_filepath)
               File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\__init__.py", line 95, in batch_export
                 export_success = pix.export(filepath, name_suffix, root_object, game_object_list)
               File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\pix.py", line 196, in export
                 export_success = _pit.export(*(in_args + trans_structs_args))
               File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\exp\pit.py", line 386, in export
                 _looks.apply_active_look(root_object)  # apply look manually, as active look setter method works only when user sets index from UI
               File "C:\Users\[i]redacted[/i]\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scs_tools\internals\looks\__init__.py", line 115, in apply_active_look
                 for prop in mat_data:
             TypeError: iter() returned non-iterator of type 'IDPropertyGroupViewKeys'

           ================

This is a working model, that is i import it and immediatelly export it without any chanegs to it.
  • It seems it has something to do with look system, but i do not understand what exactly is an issue.
  • It is not happening with models without looks.
  • I have tried multiple models with looks, and they all are failing with the same error.
  • I have tried downgrading scs_blender_tools to version 2.2 and issue persisted
  • It seems to be also happening with blender tools version 2.1.6 (last known good version working for me before), so it must be a conflict with the new blender 3.0.0 version
  • I have downgraded Blender to version 2.93.6 and the issue is no longer present!
I am using:
Blender 3.0.0
scs_blender_tools: 2.2.1
ConvertPIXWrapper: 2.0
conversion-tools-2.12

Basically everything at latest available version.
The issue is caused by Blender 3.0.0. There must be some updates that break scs_blender_tools. The error does not happen with Blender 2.93.6 and scs_blender_tools 2.2.1.


Thanks.
User avatar
room217au
Posts: 2725
Joined: 17 Jul 2015 01:55
Location: Lakeside

Re: Error when exporting model

#2 Post by room217au » 07 Dec 2021 21:41

First thing to do is check your .pit file.
If you suck at playing the trumpet, that's probably why.
User avatar
all_zer
Posts: 42
Joined: 04 Apr 2014 07:51
Contact:

Re: Error when exporting model

#3 Post by all_zer » 18 Feb 2022 10:32

I have also error while export.

I'm setting tha base path, and export path - [ external image ]
Export - [ external image ] Pressing ENTER

An, here is error comes = [ external image ]

Code: Select all

No valid export path found!
Export path does not exists or it's not inside SCS Project Base Path.
SCS Project Base Path:
"C:/Users/Serik Desktop/Desktop/joint"
Default export path used for "joint_2lane":
"C:/Users/Serik Desktop/Desktop"

-------------------
Blender: 2.90
scs_tools: 2.2
conversion_tools: 2.12

What to do, and how to solve it?
Yesterday, I've been succesfully exported models. But today it's does not wonts to work.
Post Reply

Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 3 guests