Page 1 of 1

xsizetools-1.3.0036 having trouble importing msh's

Posted: Tue Mar 02, 2021 9:28 pm
by FiftyAuto
So I got a new PC and I wanted to start modding on it again so I have been downloading everything I need for modding. When I tried installing the softimage_mod_tool and the xsizetools addon everything seemed to be working fine up until I started testing the addon. I wanted to import the atap.msh as a test. when I tried to import the mesh it only imported the dummyroot and a lowres model nothing else and I was given the error "Encountered an error while importing. copy error to clipboard?"

So I read the error log and it said:
Last 15 log lines:


INFO (643, build): Starting chain builder(79 Models).
INFO (521, build_null): Building dummyroot as null(originally null).
DEBUG (620, set_transform): Model transform: Pos(0.0, 0.0, 0.0), Rot(-0.0, -0.0, -0.0, 1.0), Scl(1.0, 1.0, 1.0)
DEBUG (627, set_transform): Set local transform for dummyroot to:
Position: 0.0, 0.0, 0.0;
Rotation: 0.0, 0.0, 0.0;
Scale: 1.0, 1.0, 1.0.
INFO (196, build): Finished building dummyroot in 0s 8000ms.
INFO (338, build_geo): Building atap_lowres as polymesh(originally geodynamic).
DEBUG (470, get_vertex_positions): Retrieved 6353 vertex positions.
INFO (33, __exit__): Retrieved vertices in 0s 4000ms.
INFO (33, __exit__): Retrieved faces in 0s 7000ms.
INFO (33, __exit__): Built polygon mesh in 0s 16000ms.
INFO (33, __exit__): Processing normals in 0s 52000ms.
INFO (33, __exit__): Built chain in 0 s 137000 ms.


Traceback:


Traceback (most recent call last):
File "<Script Block >", line 84, in importbutton_OnClicked
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 873, in import_
self.do_import()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 926, in do_import
self.chain = builder.build()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 652, in build
item = builder.build()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 189, in build
self.build_geo()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 369, in build_geo
self.process_normals()
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Core\zetimport.py", line 389, in process_normals
self.set_normals(0, self.make_normals())
File "C:\Users\Gabriel\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-1.3.0036\Application\Modules\softimage.py", line 107, in set_normals
prop = self.get_normal_props()[index]
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 473, in __getattr__
raise AttributeError("'%s' object has no attribute '%s'" % (repr(self), attr))
AttributeError: '<win32com.gen_py.Softimage|XSI Object Model Library v1.5.PropertyCollection instance at 0x681914576>' object has no attribute '__getitem__'

If someone could make sense of this that would be much appreciated.

Re: xsizetools-1.3.0036 having trouble importing msh's

Posted: Sun Mar 28, 2021 4:58 am
by ANDEWEGET
Do you still have this problem? Does this happen with every msh?

Re: xsizetools-1.3.0036 having trouble importing msh's

Posted: Thu Apr 01, 2021 4:57 pm
by FiftyAuto
Yeah I still do and it is consistent with every msh sometimes it will only be a dummy root. I don't know if it is that I have C++ 2015 - 2019 installed instead of just 2015 that caused it. It could be that I'm an idiot and did something wrong on that end. would I need to install an older version of Visual C++ Redistributable?

Re: xsizetools-1.3.0036 having trouble importing msh's

Posted: Fri Apr 02, 2021 12:02 pm
by ANDEWEGET
Took me a while but I found the problem. It seems newer versions of pywin32 generate python code from COM objects differently, which causes this issue.

To fix, uninstall your current version of pywin32 (through Windows apps) and install this one: https://sourceforge.net/projects/pywin3 ... e/download

Re: xsizetools-1.3.0036 having trouble importing msh's

Posted: Sun Apr 04, 2021 6:44 pm
by FiftyAuto
This worked like a charm thanks a ton!