I have a series of palm models released by Sky_216 some time ago, that, whenever I try to import, I get a long red line at the bottom of the XSI window, which, in the end says: 'import' object has no attribute 'get origin'.
So, how do I import the model in XSI without getting the error?
Re: Error When Importing
Posted: Thu Jul 10, 2014 12:01 pm
by Marth8880
Ugh, oh boy. Yeah, I get this error with a lot of models as well. You can try converting the msh to obj via meshtool, but don't expect it to work.
Re: Error When Importing
Posted: Thu Jul 10, 2014 1:00 pm
by GAB
Yeah, I tried converting to obj and them importing but then the import window in XSI just... disappears... and nothing is imported.
Isn't there any other solution?
EDIT
Here's what appears in the script editor:
Hidden/Spoiler:
[code]Application.NewScene("", "")
Application.MSHImport()
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 91, in importbutton_OnClicked
# import_.import_()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 757, in import_
# self.do_import()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 791, in do_import
# self.abort_checklog()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 738, in abort_checklog
# path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
# - [line 90 in D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\\Application\Logic\importer.py]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : [88] settings = andezetcore.load_settings('import', PPG.Inspected(0))
# ERROR : [89] import_ = andezetimport.Import(xsi, settings)
# ERROR : >[90] try:
# ERROR : [91] import_.import_()
# ERROR : [92] except SystemExit:
# ERROR : [93] return
# ERROR : Traceback (most recent call last):
# File "<Script Block >", line 91, in importbutton_OnClicked
# import_.import_()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 757, in import_
# self.do_import()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 791, in do_import
# self.abort_checklog()
# File "D:\users\Felipe\Autodesk\Softimage_Mod_Tool_7.5\Addons\xsizetools-master\Application\Core\andezetimport.py", line 738, in abort_checklog
# path = os.path.join(self.get_origin(), 'import_log.log')
# AttributeError: 'Import' object has no attribute 'get_origin'
#
[/code]
Re: Error When Importing
Posted: Thu Jul 10, 2014 7:14 pm
by AceMastermind
Are you talking about the palm trees he converted here? They are already in *.obj format at the source.
Re: Error When Importing
Posted: Thu Jul 10, 2014 8:50 pm
by GAB
Yes. I'm talking about those.
By the way, I just downloaded the .obj models from the second link you posted Ace, and those I did manage to open in XSI, so thanks for the link . I'll see if I can convert them to .msh tomorrow.
Off Topic: Is it still possible to download anything from gamefront? Whenever I try, I get an unavailable page.
EDIT
Off Topic 2: I see that the .obj models I downloaded have polysurfaces instead of polymesh. I'm not very keen on this, but I remember reading somewhere that .msh doesn't support surfaces. So, is there a quick way to turn a surface into a mesh?
Re: Error When Importing
Posted: Thu Jul 10, 2014 8:52 pm
by Noobasaurus
You can download a lot of things from gamefront. All of the downloads at starwarsbattlefront.filefront.com work.
Re: Error When Importing
Posted: Thu Jul 10, 2014 8:55 pm
by GAB
Then I must be really unlucky or something, because whenever I try to download anything from starwarsbattlefront.filefront.com I get an Unavailable page message. By the way, I use Chrome. I had no success with the crappy IE I have on my PC either.
Re: Error When Importing
Posted: Thu Jul 10, 2014 9:49 pm
by AceMastermind
GAB wrote:Off Topic 2: I see that the .obj models I downloaded have polysurfaces instead of polymesh. I'm not very keen on this, but I remember reading somewhere that .msh doesn't support surfaces. So, is there a quick way to turn a surface into a mesh?
These are all polygon mesh objects and will export fine, what you are seeing in the Explorer is just the object names which can be changed to whatever you want. The icons preceeding the object name is a quick way to identify its type and will distinguish it from other object types. The polygon mesh icon looks like a chair with no hind legs and the surface mesh icon looks like a playground slide.
Re: Error When Importing
Posted: Fri Jul 11, 2014 8:30 am
by ANDEWEGET
In most of these meshes there's an object designated as geometry but it doesn't actually have any geometry (and also import for MshEx .msh files was disabled). I pushed out an update which enables it and fixes the problem with that empty object (imports it as a null). Here.