STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
447
IN-GAME
2,289
ONLINE
Founded
8 November, 2013
All Discussions > Help > Topic Details
aleksof 21 Mar, 2022 @ 3:56pm
Source model import error
Ever since one of the latest blender updates, trying to import a model that was previously able to be imported is now resulting in this error:

Python: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO-master\source1_operators.py", line 54, in execute
model_container = import_model(mdl_path.open('rb'), vvd_file.open('rb'), vtx_file.open('rb'), self.scale,
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO-master\source1\mdl\import_mdl.py", line 180, in import_model
mesh_data.polygons.foreach_set("use_smooth", np.ones(len(mesh_data.polygons)))
TypeError: couldn't access the py sequence

location: <unknown location>:-1

Not sure what could be causing this and I haven't found any similar errors or solutions to this. Tried reinstalling the add-on a few times but to no avail.
Thanks for any help in advance.
Originally posted by aleksof:
@Pte Jack thank you very much!! It was indeed the SourceIO that I had to reinstall, works just fine now.
< >
Showing 1-2 of 2 comments
Pte Jack 22 Mar, 2022 @ 8:23am 
Go to RedXEye's Github and check to see if there has been an update to SourceIO since Blender 3.1 was released. If there hasn't, post your error via the issues link on the page. The Blender 3.1 update may have broken the Add-on code and may need a fix.

Edit - FYI: I have read that there is a new pre-release of Blender Source Tools which kind of indicates that the coding in 3.1 Update is causing problems in that Add-on as well, so, I would suspect it may be the case I outlined above.
Last edited by Pte Jack; 22 Mar, 2022 @ 8:28am
A moderator of this forum has indicated that this post answers the original topic.
aleksof 22 Mar, 2022 @ 9:44am 
@Pte Jack thank you very much!! It was indeed the SourceIO that I had to reinstall, works just fine now.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

All Discussions > Help > Topic Details